Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example, see this page Advanced Linux Programming.

I want to download all the pdf files linked from this page. Is there a simple commandline way of doing it?

Something on the lines of

download http://www.advancedlinuxprogramming.com/alp-folder *.pdf Downloads/
share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Have a look at wget

That site specifically says: "Do not use a download accelerator to download these files." so don't!

share|improve this answer
4  
wget isn't really an accelerator, though (at least I think not), it's a plain old HTTP client, like a browser. –  David Z Aug 29 '10 at 9:39
    
yeah, I read that, and am not using any accelerator. It doesn't matter if I use a browser or command line, does it? –  Lazer Aug 29 '10 at 10:21
1  
well its upto you but the site also has a robots.txt that says no robots so you will need to use the -e robots=off option to disable robots.txt if you do –  Adam Butler Aug 29 '10 at 11:27
2  
Lazer: By download accelerator, most people mean a program that starts multiple connections in parallel, usually to download separate chunks of the same file. This puts an extra burden on the server (and rarely speeds up the download since the N pieces come in at 1/N speed each). wget and curl are not download accelerators (unless used in an elaborate way) since they download files sequentially. –  Gilles Aug 29 '10 at 19:07
add comment

You could use curl and wget, also check both man pages to see all the handy arguments you could use.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.