Last active
June 24, 2016 19:20
-
-
Save ayman/5b23379cbbb44310cbe90feacd26b888 to your computer and use it in GitHub Desktop.
Simple wget script to slurp down a website for preservation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -lt 2 ]] ; then | |
echo 'USAGE: ./getit.sh domain.com http://www.domain.com/path' | |
exit 1 | |
fi | |
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--domains $1 \ | |
--no-parent \ | |
$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment