3 ms·
wget has the amazing flag `--page-requisites` though, which downloads all of an html documents' css and images that you might need to display it properly. Lifes
by xd1936 11y ago
wget has the amazing flag `--page-requisites` though, which downloads all of an html documents' css and images that you might need to display it properly. Lifesaver.
- troyvit 11y agowget has another great flag, -k, which changes references to the css, js, and images to absolute URLs, resulting in a 1 page download that still looks like the original page. It's useful for making dummy pages for clients. I wish curl had this for my OSX friends who need the functionality above. Getting a wget binary onto OSX is a pain but curl is there by default.
- hugodahl 11y agoWoah! Had I RTFM'd this would've saved SO. MUCH. AGGRAVATION. in recent months! Cheers!
- goldbrick 11y agowget is on homebrew.
- arm 11y agoWhoa, nice, thanks for the tip! That’s amazingly useful and I seriously wish I had known about it earlier! For OS X users, you can get wget pretty easily with Homebrew¹. Just install it, then enter the following: brew install wget --with-gpgme --with-iri --with-pcre …well, those extra options aren’t strictly needed. Just what I used since I wanted wget compiled with support for those things (GnuPG Made Easy², Internationalized Resource Identifiers³, and Perl Compatible Regular Expressions⁴). You can see all the compile-time options before installing wget by typing in: brew info wget ―――――― ¹ — http://brew.sh/ http://brew.sh/ ² — https://www.gnupg.org/related_software/gpgme/ https://www.gnupg.org/related_software/gpgme/ ³ — https://en.wikipedia.org/wiki/Internationalized_resource_identifier https://en.wikipedia.org/wiki/Internationalized_resource_ide... ⁴ — https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expressions https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expres...