Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wget --no-directories --mirror --spider https://example.com/website-to-be-archived/ 2>&1 | grep -P -o -e '(?<=^--....-..-.. ..:..:..-- )(.*)' | xargs -I{} -P 2 curl 'https://web.archive.org/save/{}' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: https://web.archive.org' -H 'Connection: keep-alive' -H 'Referer: https://web.archive.org/save/' -H 'Upgrade-Insecure-Requests: 1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: Trailers' --data-raw 'url={}' >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment