Tuesday, May 7, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 17407  / 2 Years ago, tue, november 30, 2021, 10:37:18

I am using this command:



wget -nd -e robots=off --wait 0.25 -r -A.pdf http://yourWebsite.net/


but I can't get PDFs from the website.



For example I have a root domain name:



www.example.com


and this site have PDFs, DOCs, HTMLs, etc. I want to download all PDFs by inserting only the root domain name, not the exact address of the download page.


More From » command-line

 Answers
2

The following command should work:



wget -r -A "*.pdf" "http://yourWebsite.net/"


See man wget for more info.


[#25147] Wednesday, December 1, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
weamp

Total Points: 197
Total Questions: 115
Total Answers: 92

Location: Mauritania
Member since Sun, May 7, 2023
1 Year ago
;