LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget copy web directory (https://www.linuxquestions.org/questions/linux-newbie-8/wget-copy-web-directory-863213/)

peragrate 02-16-2011 11:49 PM

wget copy web directory
 
Hi,

I know there are posts on copying entire websites with Wget (Linux), but how do I copy a particular directory only. For example, if I'm at a website that offers free eBooks and the url looked like this:

www.ebooks.com/romance (I made this url up)

How can I tell Wget to:
1) Copy only what is in the directory 'romance'
2) Copy the HTML files first
3) specify which filetypes to include in the download.

I have a few other questions:
1) Is it possible to increase the timeout?
2) Is it possible to set an option for resume?

Thanks, and sorry if this is a repeat. If it is, perhaps you could point to the url covering the topic. I did a search in the newbie section before posting this.

Please don't suggest Webhttrack...thanks.

corp769 02-17-2011 12:07 AM

As far as downloading a specific directory, I thought about the same thing a while ago but never really tried it out.

http://www.linux.com/community/blogs...directory.html

Found this link, and it works pretty well. You just need to edit the command arguments to fit your needs. As far as the filetypes are concerned, it pretty much explains how to do it.


All times are GMT -5. The time now is 01:05 AM.