Mobile app version of vmapp.org
Login or Join
Lengel546

: Download CSS with all referenced files Is there a tool that allows me to point to a CSS URL, and recursively download the CSS, as well as all the image and @import urls referenced within

@Lengel546

Posted in: #Css #Download

Is there a tool that allows me to point to a CSS URL, and recursively download the CSS, as well as all the image and @import urls referenced within it?

For example, if the CSS is at example.com/example.css
And it has things like background-image: url('images/bg.gif'), it should download bg.gif too, and dump it under an images/ subfolder locally. If it has a reference to another stylesheet ex2.css, it should recursively do this on ex2.css as well.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini213

This worked:

wget -rHm example.com/example.css


But it won't work if you have a Windows wget (because GnuWin32's wget is at an older version that doesn't support CSS)

It works on fedora after you upgrade wget to the latest using

yum update wget


Link:
wget.addictivecode.org/FrequentlyAskedQuestions#Can_Wget_download_links_found_in_CSS.3F

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme