Cannot fetch image Url (defined with data-original) inside specic class ( JSOUP)
问题 HTML source (Note that it uses lazy load jQuery plugin): 1). When I run code below it fetches all image Urls from website: Elements images=document.select("img[src~=(?i)\\.(png|jpe?g|gif)]"); 2). But when I specify the class it fails, like below: Elements images=document.select("div.newscat img[src~=(?i)\\.(png|jpe?g|gif)]"); And then I employ ( in second case it throws OutOfBoundsException): for (int i=0;i<images.size();i++){ imageUrl[i]=images.get(i).attr("src"); } Could, anyhow, lazy load