Skip to content

Instantly share code, notes, and snippets.

@Hemant-Mann
Last active February 20, 2016 10:40
Show Gist options
  • Save Hemant-Mann/f3ae59cd8a0b0827b306 to your computer and use it in GitHub Desktop.
Save Hemant-Mann/f3ae59cd8a0b0827b306 to your computer and use it in GitHub Desktop.
Wget Website Downloader
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-name=windows --domains {domain-name} --no-parent {http://domain-name/}
@Hemant-Mann
Copy link
Author

If shown Forbidden, then add
--user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36"

@Hemant-Mann
Copy link
Author

if only 1 page is downloaded then try this

wget --mirror -p --html-extension --convert-links -e robots=off -P . http://url-to-site

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