Download free e-books

wget -erobots=off --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2008092416 Firefox/3.0.3" -H -r -l2 --max-redirect=1 -w 5 --random-wait -PmyBooksFolder -nd --no-parent -A.pdf http://URL
Mask the user agent as firefox, recursively download 2 levels deep from a span host with a maximum of 1 redirection, use random wait time and dump all pdf files to myBooksFolder without creating any other directories. Host will have no way of knowing that this is a grabber script.

2010-03-01 20:22:44

What Others Think

Can be optimized to download other contents from a webpage recursively by replaying -A.pdf with -A{.your-file-type}
unixmonkey8504 · 574 weeks and 4 days ago
You absolutely certain you meant
TheMightyBuzzard · 574 weeks and 4 days ago
It may be coincidence but this is very similar to Jeffrey Veens famous wget one-liner written in 2004.
zlemini · 574 weeks and 1 day ago
A lot of sites today charge money for online books and I don't think that it's okay. I do believe that we have a right to read books for free. However, I don't understand when teachers at university force you to write about something that you don't want or even force you to prepare a research paper .. I use to get rid of it.
Garliz · 36 weeks and 1 day ago
Garliz · 36 weeks and 1 day ago
good, []anchor[/url]
Garliz · 36 weeks and 1 day ago
Is it working
Garliz · 36 weeks and 1 day ago
Garliz · 36 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: