Jsoup Is Unable To Fetch Complete Content From A Webpage (no Errors/exceptions, But Misses Some Content)
I am trying to fetch content from following page with JSOUP: http://www.exchangeandmart.co.uk/used-cars-for-sale But it does not fetch the div with id=results, even though it is vi
Solution 1:
Document doc = Jsoup.connect("http://www.exchangeandmart.co.uk/used-cars-for-sale").userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2").get()
;
Now the page should be rendered as accessed from Chrome on PC.
Post a Comment for "Jsoup Is Unable To Fetch Complete Content From A Webpage (no Errors/exceptions, But Misses Some Content)"