Skip to content

Instantly share code, notes, and snippets.

@imagehat
Forked from manifestuk/wget.sh
Created September 11, 2012 14:54
Show Gist options
  • Save imagehat/3699387 to your computer and use it in GitHub Desktop.
Save imagehat/3699387 to your computer and use it in GitHub Desktop.
Gist for retrieving a full website using wget, because I always forget the options.
#
# Explanation:
# -E Adjust extension.
# -k Convert links.
# -N Enable timestamping.
# -np No parent.
# -p Page requisites.
# -r Recursive.
# -w1 The time to wait between requests.
# --random-wait Wait times 0.5 to 1.5.
#
wget -E -k -N -np -p -r -w1 --random-wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment