wgetでサイトをダウンロード

wget -np –mirror –convert-links –restrict-file-names=windows,ascii –adjust-extension -P directory-prefix -o access.log https://www.hogehoge.jp/

-np 親ディレクトリを対象外
–mirror タイムスタンプを確認
–convert-links リンクをローカルに変換する
–restrict-file-names=windows,ascii
–adjust-extension 拡張子が無い場合、末尾にhtmlを付ける
-P directory-prefix
-o access.log
https://www.hogehog

間隔をあけるパラメータも必要ですね

参考
https://tex2e.github.io/blog/shell/wget-entire-website

カテゴリー: Linux, Web, 仕事 タグ: パーマリンク