Windows下使用wget

下载wget.exe,http://users.ugent.be/~bpuype/wget/,将其放到C:\Windows\System32文件夹下。

下面谈谈如何使用wgetrc配置文件。

1、创建一个文件,名为wgetrc,里面写上你的设置,比如

#You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://127.0.0.1:8087/
http_proxy = http://127.0.0.1:8087/
ftp_proxy = http://127.0.0.1:8087/

# If you do not want to use proxy at all, set this to off.
use_proxy = on

2、创建HOME环境变量,指向HOME文件夹(如果没有则创建之)。

3、把wgetrc放到HOME文件夹下,创建WGETRC环境变量,指向wgetrc文件。

ref:http://www.interlog.com/~tcharron/wgetwin.html

原文地址:https://www.cnblogs.com/cloud2rain/p/3015284.html