Skip to content

Instantly share code, notes, and snippets.

@UnforeseenOcean
Forked from protrolium/wget.md
Created September 1, 2019 06:39
Show Gist options
  • Save UnforeseenOcean/260efe9d93f9f89238d8ffba919d2904 to your computer and use it in GitHub Desktop.
Save UnforeseenOcean/260efe9d93f9f89238d8ffba919d2904 to your computer and use it in GitHub Desktop.
wget commands

Download a Full Website Using wget –mirror

Following is the command line which you want to execute when you want to download a full website and made available for local viewing.

$ wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL

  • -mirror : turn on options suitable for mirroring.
  • -p : download all files that are necessary to properly display a given HTML page.
  • -convert-links : after the download, convert the links in document for local viewing.
  • -P ./LOCAL-DIR : save all the files and directories to the specified directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment