使用 wget 下载 pdf 文件。 (文件扩展名后的字符?)

Downloading pdf files with wget. (characters after file extension?)

我正在尝试从网页递归下载所有 .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=****”。

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