Skip to content

Instantly share code, notes, and snippets.

@quoidautre
Forked from nepsilon/3-handy-wget-tips.md
Last active September 22, 2015 07:49
Show Gist options
  • Save quoidautre/f6e667ea7f061901406e to your computer and use it in GitHub Desktop.
Save quoidautre/f6e667ea7f061901406e to your computer and use it in GitHub Desktop.
Wget tips
# Copy a whole site locally,
# including images, css, js
# and converting links
wget -p -m -k fullweb​.io
# Check for 404 links
wget --spider your-url-list.txt
# give it an HTML page with -F
wget --spider -F you-webpage.html
# Accept (-A) or reject (-R) some files
# here only keeping images from the site
wget -p -A png,jpg,jpeg,gif \
-R html,css,js \
wikipedia​.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment