LoginSignup
0
0

wget on mac

Last updated at Posted at 2024-01-17

wgetを使う必要がありそうだったのでメモ

使う前に注意事項

インストール方法と、サーバーに負荷をかけたりしないよう必要最低限のオプションをつけておく方法

たくさんあるオプション

wget -np -r -p -l 1 -w 10 -limit-rate=20k -m -tries 10 URL

IDとパスワードいる場合

wget -np -r -p -l 1 -w 10 -limit-rate=20k -m -tries 10 http://id:pass@host/path

nofollowがついてたり、画像のみとりたい場合

wget -np -r -p -l 1 -w 10 -limit-rate=20k -m -tries 10 -e robots=off -A jpg,png,gif URL
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0