[GLLUG] first try using wget

Sean picasso@madflower.com
Thu, 27 Jun 2002 15:28:47 -0400 (EDT)


try the -l option 

wget -r -l1 http://www.oreilly.com/openbook/freedom/

On Thu, 27 Jun 2002, Brian Hoort wrote:

> I just tried to use wget for the first time to download the book, Free as 
> in Freedom, Richard Stallman's Crusade for Free Software, By Sam Williams, 
> available free online by O'Reilly. First I did:
> $ wget http://www.oreilly.com/openbook/freedom/
> in the hopes that it would download everything in that file. Instead, it 
> acted just like a browser and downloaded index.html. What I wanted was any 
> file matching ch??.html, or better yet, everything in and below that dir. 
> Looking at the man page, I find -r for recursion. So next I tried:
> $ wget -r http://www.oreilly.com/openbook/freedom/
> and it downloaded what I wanted, and started getting everything on their 
> whole site, www.oreilly.com as well as international.oreilly.com.
> 
> Before I do that again, what do I do to limit it to a certain folder?
> 
> TIA
> 
> 
> 
>