Last active
June 14, 2023 14:14
Revisions
-
chenyukang renamed this gist
May 17, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chenyukang created this gist
May 17, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ ## use wget to download website ```bash wget --reject-regex "(.*)\?(.*)" --mirror --no-parent --convert-links -p -U Mozilla https://program-think.blogspot.com/ ``` ## replace abs path to relative path ```bash find . -type f -name '*.html' -exec sed -i '' 's|https://program-think.blogspot.com/|/|g' {} + ``` ## run local server to read it ```bash python3 -m http.server ```