Set how many timeswgetattempts to download a file after being interrupted by a network issue with this command: wget --tries=[number_of_tries] [URL] By default, the number of retry attempts is set to20. Another option is to set the number to infinity with the values0orinf, as in the...
--background 启动后转入后台 -e, --execute=命令 运行一个“.wgetrc”风格的命令 日志和输入文件: -o, --output-file=文件 将日志信息写入 FILE -a, --append-output=文件 将信息添加至 FILE -d, --debug 打印大量调试信息 -q, --quiet 安静模式 (无信息输出) -v, --verbose 详尽的输出 (此为默...
--report-speed=TYPEOutputbandwidthasTYPE.TYPEcan be bits.-i,--input-file=FILE 下载本地或外部 FILE 中的 URLs。-F,--force-html 把输入文件当成 HTML 文件。-B,--base=URL 解析与 URL 相关的 HTML 输入文件(由-i-F 选项指定)。--config=FILESpecifyconfig file to use.下载:-t,--tries=NUMBER ...
124 --warc-file=FILENAME save request/response data to a .warc.gz file. 125 --warc-header=STRING insert STRING into the warcinfo record. 126 --warc-max-size=NUMBER set maximum size of WARC files to NUMBER. 127 --warc-cdx write CDX index files. 128 --warc-dedup=FILENAME do not st...
24 --config=FILE Specify config file to use. 25 26 下载: 27 -t, --tries=NUMBER 设置重试次数为 NUMBER (0 代表无限制)。 28 --retry-connrefused 即使拒绝连接也是重试。 29 -O, --output-document=FILE 将文档写入 FILE。 30 -nc, --no-clobber skip downloads that would download to ...
124 --warc-file=FILENAME save request/response data to a .warc.gz file. 125 --warc-header=STRING insert STRING into the warcinfo record. 126 --warc-max-size=NUMBER set maximum size of WARC files to NUMBER. 127 --warc-cdx write CDX index files. ...
--warc-file=FILENAME save request/response data to a.warc.gz file.--warc-header=STRING insert STRING into the warcinfo record.--warc-max-size=NUMBER set maximum size of WARC files to NUMBER.--warc-cdx write CDX index files.--warc-dedup=FILENAMEdonotstore records listed inthisCDX file....
WARC options:--warc-file=FILENAME save request/response data to a .warc.gz file.--warc-header=STRING insert STRING into the warcinfo record.--warc-max-size=NUMBER set maximum size of WARC files to NUMBER.--warc-cdx write CDX index files.--warc-dedup=FILENAME do not store records ...
F, --force-html treat input file as HTML. -B, --base=URL resolves HTML input-file links (-i -F) relative to URL. --config=FILE Specify config file to use. --no-config Do not read any config file. Download: -t, --tries=NUMBER set number of retries to NUMBER (0 unlimits). ...
-o, --output-encoding=ENC set output encoding, default is GBK. -p, --path=PATH choose the path which to process. -u, --is-url whether as a URL ''' def main(argv): input_encoding = "utf-8" output_encoding = "gbk" path = "" is_url = True try: opts, args = getopt....