views:

269

answers:

2

Hello,

often I need to download a webpage and then edit it offline. I have tried a few tools and the main feature they lack is downloading images referenced in the CSS files.

Is there a tool (for Linux) that will download everything so that the webpage will render the same offline (excluding AJAX)?

thanks

A: 
wget
OscarRyz
+1  A: 
wget --page-requisites http://example.com/your/page.html

This option causes Wget to download all the files that are necessary to properly display a given html page. This includes such things as inlined images, sounds, and referenced stylesheets.

EDIT: meder is right: stock wget does not parse and download css images. there is, however, a patch that adds this feature: [1, 2]

ax
As far as I know, this won't download images referenced in CSS files, which is what the OP intended. I think you would have to write a script that parses the css files, or find one someone's made, I'm curious about this too though.
meder
You should download the whole directory images recursively
OscarRyz
seems that patch has been around since 07, and still not integrated...
Plumo