Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Created March 20, 2013 02:32
Show Gist options
  • Save magnetikonline/5201859 to your computer and use it in GitHub Desktop.
Save magnetikonline/5201859 to your computer and use it in GitHub Desktop.
Download complete website using wget.
#!/bin/bash
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 [domain] [path]"
exit
fi
wget \
--domains $1 \
--html-extension \
--no-clobber \
--no-parent \
--page-requisites \
--recursive \
$1/$2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment