Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using this command:

wget -nd -e robots=off --wait 0.25 -r -A.pdf

but I can't get PDFs from the website.

For example I have a root domain name:

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.

share|improve this question
What do you mean "root domain name"There is this but I doubt you mean that. there is this but i'm not clear what you mean. Why are you one minute talking about and the next minute talking about – barlop May 18 '14 at 18:46
You should clarify the above, but anyhow, You can only get what are linked to. So if there's a webpage that links to the PDFs then you can get them, if not then you can't. But you can get any link on the domain, if there's an html file linking to it that you are reaching. – barlop May 18 '14 at 18:49

Applying the provided command to an exemplary website worked out on my Ubuntu 12.04 machine using wget version 1.13.4:

$ wget -nd -e robots=off --wait 0.25 -r -A.pdf

However, it takes some time until the first pdf is downloaded, since the site provides many html-files, which need to be skipped.

Leaving out the "--wait 0.25" option speeds up the process, but obviously increases the workload on the server-side.

If the command does not work for your website, it might be a website-specific problem/layout/..., avoiding a successful download.

share|improve this answer
To finally resolve your problem, it might help, posting the specific domain you're interested in. – user258346 Sep 17 '14 at 9:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .