Sunday, March 26, 2017

Download a website using wget

Sometimes, you wish you had an offline copy of a web site, especially a reference web site, so that you can read it and refer to it at your leisure.

You can do this using the linux wget command:

$ wget \
     --continue \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains=website.com \
     --no-parent \
         [http://]www.website.com/path/to/folder/[file.html]
Reference: 
 . 

No comments: