View previous topic :: View next topic |
Author |
Message |
MrGentooMan n00b
Joined: 29 Dec 2004 Posts: 57
|
Posted: Fri Jul 15, 2005 6:00 pm Post subject: any expert in wget ? |
|
|
Hi
I want to download a complete section from a site but wget will download all the site, I want to download only the directory /english/ from the site www.example.com ( www.example.com/english/ ) anyway know how to do that ?
Thanks _________________ Gentoo is the best |
|
Back to top |
|
|
zmedico Developer
Joined: 02 Jan 2004 Posts: 352 Location: California USA
|
Posted: Fri Jul 15, 2005 6:20 pm Post subject: |
|
|
You want to use Directory-Based Limits.
Code: | wget --recursive --timestamping --convert-links --page-requisites -l inf -I /english http://www.example.com/ |
I recommend timestamping so that if you need to resume it will only download the files with newer timestamps. _________________ Zac |
|
Back to top |
|
|
MrGentooMan n00b
Joined: 29 Dec 2004 Posts: 57
|
Posted: Fri Jul 15, 2005 6:55 pm Post subject: |
|
|
Thanks, but the option -I doesn't work
it will download only the index.html file and stop
Code: |
tuxdesktop ~ # wget -r --timestamping -l inf -I /music_site http://www.njom.net/music_site/eng/
--18:51:25-- http://www.njom.net/music_site/eng/
=> `www.njom.net/music_site/eng/index.html'
Resolving proxy... 111..11.11.111
Connecting to proxy[21323232323]:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Last-modified header missing -- time-stamps turned off.
--18:51:37-- http://www.njom.net/music_site/eng/
=> `www.njom.net/music_site/eng/index.html'
Connecting to proxy.[111111]:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=> ] 64 --.--K/s
18:51:54 (625.00 KB/s) - `www.njom.net/music_site/eng/index.html' saved [64]
FINISHED --18:51:54--
Downloaded: 64 bytes in 1 files
|
_________________ Gentoo is the best |
|
Back to top |
|
|
zmedico Developer
Joined: 02 Jan 2004 Posts: 352 Location: California USA
|
Posted: Fri Jul 15, 2005 7:06 pm Post subject: |
|
|
Apparently -I does not include any subdirectories. Maybe you can use --no-parent instead. _________________ Zac |
|
Back to top |
|
|
|