Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
any expert in wget ?
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
MrGentooMan
n00b
n00b


Joined: 29 Dec 2004
Posts: 57

PostPosted: Fri Jul 15, 2005 6:00 pm    Post subject: any expert in wget ? Reply with quote

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
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 352
Location: California USA

PostPosted: Fri Jul 15, 2005 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
MrGentooMan
n00b
n00b


Joined: 29 Dec 2004
Posts: 57

PostPosted: Fri Jul 15, 2005 6:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 352
Location: California USA

PostPosted: Fri Jul 15, 2005 7:06 pm    Post subject: Reply with quote

Apparently -I does not include any subdirectories. Maybe you can use --no-parent instead.
_________________
Zac
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