【问题标题】:Download multiple urls using wget in windows?在 Windows 中使用 wget 下载多个网址?
【发布时间】:2015-10-02 20:05:06
【问题描述】:

我正在尝试下载数百个文件,而且我是 Windows 用户。我在网上搜索并找到了解决方案,但遇到了新问题。

这是我所做的:

  1. 我将所有 url 放入一个文本文件中,每个 url 单独一行。该文件名为download.txt

  2. 在命令窗口中,输入

    wget -i 下载.txt

  3. 我已成功获取文件。

但是,服务器看起来不是很稳定,有时我得到了

Error 500: Internal server error

然后我必须挑选出没有下载的文件。这是一项繁琐的工作,因为文件名非常相似并且有数百个。

我的问题: 有什么简单的方法可以自动挑选出这些文件并再次下载它们?或者有什么方法可以让 wget 在文件失败时再次下载?

感谢您的帮助。

【问题讨论】:

    标签: windows batch-file url download wget


    【解决方案1】:

    500 内部服务器错误
    通用错误消息,在遇到意外情况且没有更具体的消息适用时给出。

    尝试顺利下载。这些设置将帮助您避免被网站禁止^^。

    wget -b -q -nc -c -N --limit-rate=150k -i download.txt
    
    -b,  --background       go to background after startup
    -q,  --quiet            quiet (no output).
    -nc, --no-clobber       skip downloads that would download to existing files.
    -c,  --continue         resume getting a partially-downloaded file.
    -N,  --timestamping     don't re-retrieve files unless newer than local.
         --limit-rate=RATE  limit download rate to RATE.
    

    【讨论】:

    • 谢谢,保罗。这正是我想要的。
    猜你喜欢
    • 1970-01-01
    • 2021-04-12
    • 1970-01-01
    • 1970-01-01
    • 2011-03-26
    • 1970-01-01
    • 2018-06-16
    • 2012-06-19
    • 1970-01-01
    相关资源
    最近更新 更多