Skip to content

Instantly share code, notes, and snippets.

@raggleton
Created November 19, 2014 09:58
Show Gist options
  • Save raggleton/c480f00f2a6a1525a300 to your computer and use it in GitHub Desktop.
Save raggleton/c480f00f2a6a1525a300 to your computer and use it in GitHub Desktop.
How to save website offline

wget -k -p -e robots=off -r -l2 http://www.parashift.com/c++-faq-lite/index.html

or

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org

aka

wget -mkEpnp http://example.org

see http://www.guyrutenberg.com/2014/05/02/make-offline-mirror-of-a-site-using-wget/

the k is is for converting links to local files the p is for downloading style sheets etc the e/r is for recusrsive downloads the l2 is how many levels to descend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment