Skip to content

Instantly share code, notes, and snippets.

@ayman
Last active June 24, 2016 19:20
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 ayman/5b23379cbbb44310cbe90feacd26b888 to your computer and use it in GitHub Desktop.
Save ayman/5b23379cbbb44310cbe90feacd26b888 to your computer and use it in GitHub Desktop.
Simple wget script to slurp down a website for preservation.
#!/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