Wget with joker in url

0

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

wget http://files.www.url.com/pastaDownloads/*.pdf
    
asked by anonymous 28.03.2018 / 23:47

1 answer

1

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

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

From the manual, with my translation and google translate:

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

    
29.03.2018 / 00:10