Wget with wildcard in url

Asked

Viewed 232 times

0

Is it possible to use wget with wildcard containing url? for example:

wget http://files.www.url.com/pastaDownloads/*.pdf
  • 1

    Try it like this: wget -r --no-parent -A '*.pdf' http://files.www.url.com/pastaDownloads/

1 answer

1


According to the wget manual and that answer in the Unix part of the Stack Exchange, it is possible yes, and would look something like this:

wget -r -l1 --no-parent -A.pdf http://files.www.url.com/pastaDownloads/

From the manual, with translation of my and google Translate:

-r -l1 means to recover recursively (see Recursive Download in manual), with maximum depth = 1. --no-parent means that references to the parent directory are ignored (see the Directory-Based Limits manual), and -A.pdf means download only PDF files. -A "*.pdf" would have worked too (in the Recursive Accept/Reject Options manual).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.