Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using wget to get an online book
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Sat Jan 07, 2006 12:58 am    Post subject: using wget to get an online book Reply with quote

I want to use wget to get an entire online book. After looking over the man page, it seems I need to use the -r (recursive option). Let's say the url I am attempting to get is the following:
www.publisher.com/books/science/TheBiologyBook.html

publisher.com
--> books
----> science
------> TheBiologyBook

I don't want anything from publisher.com's home page, or all of their online books, or their other science books, or anything else except TheBiologyBook. TheBiologyBook starts at TheBiologyBook.html and all of its contents are found at www.publisher.com/books/science/TheBiologyBook*
_________________
gentoo good to be true
Back to top
View user's profile Send private message
morodoch
Guru
Guru


Joined: 22 Sep 2005
Posts: 523
Location: England

PostPosted: Sat Jan 07, 2006 1:40 am    Post subject: Reply with quote

I think you'll want to specify these options as well as -r:

--no-parent
--level=depth

where depth is the level of recursion you're prepared to go to.

You may also want to look at these options which'll help you include/exclude files and directories: -I -X -R -A

These are all explained on the wget manpage / info.
_________________
Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.

-- Curtis


Last edited by morodoch on Sat Jan 07, 2006 1:40 am; edited 1 time in total
Back to top
View user's profile Send private message
reynolds531
Apprentice
Apprentice


Joined: 23 Apr 2005
Posts: 260
Location: Rochester, NY

PostPosted: Sat Jan 07, 2006 1:40 am    Post subject: Reply with quote

Does it have to be with wget? If you use firefox, there's an extension, called scrapbook, that makes this kind of thing very easy. After you install the extension, go to the table of contents of the book and from the context menu click on "capture page as." You'll be asked how deep you want to drill and you can limit the results to pages within a particular domain.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum