java - jsoup not fetching all images off a page -
tried fetch images off page.
using code shown below fetches side images logo etc., doesn't fetch image in have shown data.
public static void main (string args[]) {        document doc;     try {                doc = jsoup.connect("http://www.wolframalpha.com/input/?i=hepatitis").get();         elements desc =doc.select("img[src]");                                        {             (element link :desc)                             system.out.println("text :"+link.absurl("src"));         }     } catch (ioexception e) {         system.out.println(e);     }   } }   i tried fetch images using id this:
elements desc =doc.select("#scannerresult_0300_1 img[src]");   but didn't return result.
the website generates lots of content based on javascripts. nfortunately jsoup doesn't support those, scripts not executed, therefore no content generated.
please see answer more informations: fetch contents(loaded through ajax call) of web page
Comments
Post a Comment