wget 使用 url 列表下载

Chr*_*ris 4 wget

我正在尝试使用wget. 相关的 URL 存储在文件中url.txt。使用该命令时,wget --content-disposition -i url.txt它找不到 .txt 文件。

我必须在哪里存储 url.txt 文件?

Thu*_*shi 5

你应该给你的网址 http://

url.txt应该有

  http://www.google.com
  http://www.yahoo.com
Run Code Online (Sandbox Code Playgroud)

如果您没有包含协议,您将收到说明以下内容的消息:

$ wget --content-disposition  -i url.txt 
url.txt: Invalid URL www.google.com: Scheme missing
url.txt: Invalid URL www.yahoo.com: Scheme missing
Run Code Online (Sandbox Code Playgroud)