Skip to content

Instantly share code, notes, and snippets.

@eli-oat
Created September 5, 2017 12:37
Show Gist options
  • Save eli-oat/c4a5ded07e1120bdb15a88bb0beac9e5 to your computer and use it in GitHub Desktop.
Save eli-oat/c4a5ded07e1120bdb15a88bb0beac9e5 to your computer and use it in GitHub Desktop.
Download a website
#!/bin/bash
printf "\n\n Please enter the URL of the website you wish to download.\n Do not include leading 'http://' or 'https://'?\n\n\n"
printf " "
read URL
printf "\n\n Depending on the size of the website you just\n entered, this may take a few minutes.\n\n\n"
sleep 6
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains ${URL} --no-parent http://${URL}
printf "\n\n DONE!\n\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment