※こちらは旧サイトです(新サイトはこちら

wgetのオプションメモ

2016-07-29 11:44:16

一部界隈ではwgetよりAxelコマンドガーというのをちらほら見ますがそれでも僕はwgetを使い続けるよ

普通にwget

$ wget http://7me.oji.0j0.jp/

ファイル名指定

$ wget -O hoge.txt http://7me.oji.0j0.jp/index.html

2016-07-29 11:39:33 (1.59 MB/s) - `hoge.txt' へ保存完了 `

オレオレ証明書のサイトにwget

$ wget --no-check-certificate https://(SSLのサイト)

Basic認証付きのサイトにwget

$ wget --http-user=[ユーザ] --http-passwd=[パスワード] http://7me.oji.0j0.jp/index.html

ユーザエージェントを指定してwget

$ wget --user-agent="Mozilla/5.0 (Linux; Android 5.1; LG-H815 Build/LMY47D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.94 Mobile Safari/537.36" http://7me.oji.0j0.jp/index.html

wget:更新があった時だけダウンロードする(-N)

$ wget -N ftp://hogehoge.com/path/to/hoge.gz