Created
July 4, 2024 12:37
-
-
Save wesort/849f3c6d35464a8b02cea105cc1bb95b to your computer and use it in GitHub Desktop.
wget command to archive a website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -e robots=off --mirror --page-requisites --convert-links --adjust-extension --no-if-modified-since --no-check-certificate --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" https://example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Archive a website using
wget
Running the command
https://example.com
, the whole site will be inexample.com/
mv example.com/* .
thenrm -rf example.com/