I want to get a list of all image URLs from the HTML source of a webpage (both abosulte and relative URLs). I used Jsoup to parse HTML, but did not provide it with all the images. For example, when I parse the google.com HTML source, it shows null images. At google.com links to HTML source images in the form.
"background:url(/intl/en_com/images/srpr/logo1w.png)
And at rediff.com, image links are in shape.
videoArr[j]=new Array("http://ishare.rediff.com/video/entertainment/bappi-da-the-first-indian-in-grammy-jury/2684982","http://datastore.rediff.com/h86-w116/thumb/5E5669666658606D6A6B6272/v3np2zgbla4vdccf.D.0.bappi.jpg","Bappi Da - the first Indian In Grammy jury","http://mypage.rediff.com/profile/getprofile/LehrenTV/12669275","LehrenTV","(2:33)"); j = 1 videoArr[j]=new Array("http://ishare.rediff.com/video/entertainment/bebo-shahid-jab-they-met-again-/2681664","http://datastore.rediff.com/h86-w116/thumb/5E5669666658606D6A6B6272/ra8p9eeig8zy5qvd.D.0.They-Met-Again.jpg","Bebo-Shahid : Jab they met again!","http://mypage.rediff.com/profile/getprofile/LehrenTV/12669275","LehrenTV","(2:17)");
All images are not displayed in the "img" tags. I also want to extract images that are not even in the "img" tags, as shown in the above HTML source.
How can i do this..? Please help me with this .. Thanks
java
user600989
source share