Read one value from website html > java jsoup -


i'm looking way best flying ticket price website parsing in java, @ start particular site :

http://www.kayak.com/flights

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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -