tomimemo
いろいろ
最終更新:
匿名ユーザー
-
view
windows上でwgetを使う
http://members.at.infoseek.co.jp/futora/wget153/wget153_win32.lzh をダウンロード
解凍してできたディレクトリをwgetにリネームして適当に配置
(例 D:/tool/wgetとか)
解凍してできたディレクトリをwgetにリネームして適当に配置
(例 D:/tool/wgetとか)
コマンドプロンプト使って取得してみる。取得できた。
> cd /d d:\
> cd D:\tool\wget
> WGET.EXE http://www.google.co.jp/
--10:31:13-- http://www.google.co.jp:80/
=> `index.html'
Connecting to www.google.co.jp:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
0K -> ..
10:31:13 (2.65 MB/s) - `index.html' saved [2781]
オプションの指定について
- ユーザエージェントをhogehogeにする
> WGET.EXE --user-agent=hogehoge http://www.example.com/
- ユーザ名とパスワードを付加する
> WGET.EXE --http-user=username --http-passwd=password http://www.example.com/
残りはドキュメントを見れば大体OK。
ちなみにディフォルトのユーザエージェントは Wget/1.5.3 になっていた。
ちなみにディフォルトのユーザエージェントは Wget/1.5.3 になっていた。