Wednesday, January 28, 2015

How to download an entire site to your machine

1. brew install wget
2. wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains

--domains flag indicates don't follow any external links from site.
--recursive flag tells wget to download all the files on that domain
--page-requisites - get all assets (images, CSS etc)
--html-extension : save files with the .html extension
--convert-links : convert links so that they work off-line
--no-clobber : don't overwrite any existing files