I need to download all pdf files from a certain domain. There are about 6000 pdf on that domain and most of them don’t have an html link (either they have removed the link or they never put one in the first place).
I know there are about 6000 files because I’m googling: filetype:pdf site:*.adomain.com
However, Google lists only the first 1000 results. I believe there are two ways to achieve this:
a) Use Google. However, how I can get all 6000 results from Google? Maybe a scraper? (tried scroogle, no luck)
b) Skip Google and search directly on domain for pdf files. How do I do that when most them are not linked?
If the links to the files have been removed, and you have no permission to list the directories, it’s basically impossible to know behind what URL there is a pdf-file.
You could have a look at http://www.archive.org and look up a previous state of the page if you believe there has been links to the files in the past.
To retrieve all pdfs mentioned on the site recursively I recommend wget. From the examples at http://www.gnu.org/software/wget/manual/html_node/Advanced-Usage.html#Advanced-Usage
(Simply replace .gif with .pdf!)