How to download the page and the images given the url using java. A similar question was avaialble already, which when tried just saves the page and not the images.
+2
A:
You'll have to download the page (HTML), then parse the HTML, find the <img> tags in there, and download the images (the src attribute of the <img> tag is the URL of the image file). Likewise you might want to download accompanying CSS or JavaScript files for the page.
Jesper
2009-08-20 10:38:43
regex can match all those tags for you.god forbid its one of those new fangled pages that use javascript for everything.
aepurniet
2009-08-20 13:32:06