I need to download a very large number of pdf files (would be tedious if not impossible to collect and collate all the links) from my university website using wget, with links like this:
http://example.edu/path_to_directory/directory/foobar.pdf
I am using the following command:
wget -mk --no-check-certificate --load-cookies cookies.txt http://example.edu/arbitrary_link_to_directory/directory/
Unfortunately the actual directories which contain the pdfs each redirect to an error page, and all I get are a bunch of html and css files.
http://example.edu/path_to_directory/directory/
would in a browser redirect one to
http://example.edu/path_to_directory/error/error.html
Would it be possible to download the all files in question using wget at all?
site:example.edu/dir/ filetype:pdf
and get a list of urls that might work better.