View previous topic :: View next topic |
Author |
Message |
nss Guru
Joined: 04 Oct 2004 Posts: 389
|
Posted: Sat Jan 07, 2006 12:58 am Post subject: using wget to get an online book |
|
|
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 |
|
|
morodoch Guru
Joined: 22 Sep 2005 Posts: 523 Location: England
|
Posted: Sat Jan 07, 2006 1:40 am Post subject: |
|
|
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 |
|
|
reynolds531 Apprentice
Joined: 23 Apr 2005 Posts: 260 Location: Rochester, NY
|
Posted: Sat Jan 07, 2006 1:40 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|