Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wget optimized for creating locally browseable archives
#!/bin/bash
wget \
--execute robots=off \
--no-check-certificate \
--mirror \
--html-extension \
--convert-links \
--backup-converted \
--page-requisites \
--timestamping \
--no-parent \
--follow-ftp \
--reject "index.html\\@C=[NMSD];O=[AD].html" \
--reject "index.html\\@[NMSD]=[AD].html" \
--restrict-file-names=windows \
--tries 1 \
--timeout 10 \
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.