Read one value from website html > java jsoup -
i'm looking way best flying ticket price website parsing in java, @ start particular site :
for example i'm looking flight gdaĆsk > barcelona
random data:
http://www.kayak.com/flights/gdn-bcn/2015-04-20/2015-04-27
things i've done:
- found div's i'd parsing @ browser in programmers mode:
div class="sliderfilterlabel">
span id="low_price"> class="min">73 €
on spot there should lowest price.
- tried parse using jsoup , i've found out code misses valuable me divs.
how find or there more efficient way 1 number whole website.
my code:
document doc; try { // need http protocol doc = jsoup.connect("https://www.kayak.pl/flights/gdn,nearby-ibz,nearby/2015-04-20/2015-04-27").useragent("mozilla/5.0 (windows nt 6.1) applewebkit/537.36 (khtml, gecko) chrome/41.0.2228.0 safari/537.36").get(); system.out.println(doc);
there no code. after few tries jsoup printed out whole website parse , cannot find divs need.
Comments
Post a Comment