java - I can't parse for image src using JSOUP. -


i trying parse image src using jsoup in link: http://kissmanga.com/manga/one-piece/one-piece-790--heaven-and-earth?id=232851

my code parse:

 document document= jsoup.connect(params[0]).useragent("mozilla/5.0 "             + "(windows nt 6.1) applewebkit/537.36 (khtml, gecko) "             + "chrome/41.0.2228.0 safari/537.36")             .timeout(10000).followredirects(false).get();          log.d("display",document.tostring());         elements  elements =document.select("div#divimage p");         log.d("display",elements.tostring());         for(element e:elements)           {          log.d("imagechapter",e.attr("src"));           } 

but nothing. can me image in chapter manga.

firstly, element not img tag, cannot attribute src. shoul use document.select("div#divimage p img"); getting img tag, can attribute src.

secondly, page load image javascript can check page source, can find use

$("#divimage img").load(function() {}); 

please check list of image installed. can parse image link getting javascript. sure difficult.


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -