【问题标题】:Downloading pdf files with wget. (characters after file extension?)使用 wget 下载 pdf 文件。 (文件扩展名后的字符?)
【发布时间】:2017-03-03 12:09:27
【问题描述】:

我正在尝试从网页递归下载所有 .pdf 文件。

文件 URL 的格式如下:

"http://example.com/fileexample.pdf?id=****"

我正在使用这些参数:

wget -r -l1 -A.pdf http://example.com

wget 在保存时拒绝所有文件。使用 --debug 时出现此错误:

Removing file due to recursive rejection criteria in recursive_retrieve()

我认为这是因为扩展名之后的“?id=****”。

【问题讨论】:

    标签: shell pdf url web wget


    【解决方案1】:

    但是你试过-A "*.pdf*" 吗?关于 wget 文档,这应该可以解决。

    【讨论】:

      猜你喜欢
      • 2019-10-22
      • 2013-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多