Skip to content

Instantly share code, notes, and snippets.

@mijoharas
Created October 4, 2013 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mijoharas/6823826 to your computer and use it in GitHub Desktop.
Save mijoharas/6823826 to your computer and use it in GitHub Desktop.
Wget
# get page and associated files so that can be viewed locally
wget -E -H -k -K -p http://<site>/<document>
# multiple pages
wget -E -H -k -K -p -np -l 1 http://<site>/level
# reference http://stackoverflow.com/questions/16780601/wget-span-host-only-for-images-stylesheets-javascript-but-not-links
# more verbose
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--domains website.org --no-parent www.website.org/tutorials/html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment