1

如何使用 wget 检查代理?

代理列表.txt

41.230.30.24:3128
182.253.32.175:3128
77.65.19.35:3128
176.192.42.230:80
...

如何按顺序测试代理列表。

例子:

wget http://www.google.com -U Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 -P "" --cookies=off --no-http-keep-alive -e use_proxy=yes --max-redirect 0 -t 1 --timeout=5 -e http_proxy=41.230.30.24:3128

wget http://www.google.com -U Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 -P "" --cookies=off --no-http-keep-alive -e use_proxy=yes --max-redirect 0 -t 1 --timeout=5 -e http_proxy=182.253.32.175:3128

ETC..

我怎样才能自动做到这一点。

4

1 回答 1

1
for /f %%a in (proxylist.txt) do wget http://www.google.com -U Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 -P "" --cookies=off --no-http-keep-alive -e use_proxy=yes --max-redirect 0 -t 1 --timeout=5 -e http_proxy=%%a
于 2013-11-10T21:28:06.177 回答