I'm using a
wget command which downloads an entire webpage with all assets, requisites and save it to custom folder for a later work on it.
My actual code:
$ wget --adjust-extension --span-hosts --convert-links --page-requisites \ --no-directories --restrict-file-names=windows --no-parent \ --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20070725 Firefox/22.214.171.124"\ ‐‐execute robots=off --limit-rate 400k --directory-prefix=elbache \ ‐‐output-document=index.html http://www.bachecubano.com/celulares
By now everything works great, but I want to reduce the
--page-requisites to only CSS and images (I don't want .JS files). The downloaded pages can be reduced by almost 40% if I don't load .js assets, which is not required for my purpose.
How do I config
wget for only accept .css and /images but not *.js files?