JotaB
JotaB

Reputation: 99

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

I'm trying to dowload recursively all .pdf files from a webpage.

The files URL have this format:

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

I'm using these parameters:

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

wget is rejecting all the files when saving. Getting this error when using --debug:

Removing file due to recursive rejection criteria in recursive_retrieve()

I think that's happening because of this "?id=****" after the extension.

Upvotes: 0

Views: 536

Answers (1)

rockdaboot
rockdaboot

Reputation: 736

But did you try -A "*.pdf*" ? Regarding the wget docs, this should work out.

Upvotes: 1

Related Questions