How to download specific files from some url path with wget

Clash Royale CLAN TAG#URR8PPP
up vote
21
down vote
favorite
If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:
$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: wildcards not supported in HTTP.
....
This of course assumes that I don't know the filenames in advance.
wildcards wget
add a comment |Â
up vote
21
down vote
favorite
If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:
$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: wildcards not supported in HTTP.
....
This of course assumes that I don't know the filenames in advance.
wildcards wget
add a comment |Â
up vote
21
down vote
favorite
up vote
21
down vote
favorite
If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:
$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: wildcards not supported in HTTP.
....
This of course assumes that I don't know the filenames in advance.
wildcards wget
If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:
$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: wildcards not supported in HTTP.
....
This of course assumes that I don't know the filenames in advance.
wildcards wget
wildcards wget
edited Aug 17 '11 at 13:18
Stéphane Gimenez
18.7k15074
18.7k15074
asked Aug 17 '11 at 12:58
Tshepang
24.7k71180261
24.7k71180261
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
19
down vote
Try this:
wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/
-r recursively-l1 to a maximum depth of 1--no-parent ignore links to a higher directory-A "*.deb" your pattern
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
4
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
19
down vote
Try this:
wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/
-r recursively-l1 to a maximum depth of 1--no-parent ignore links to a higher directory-A "*.deb" your pattern
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
4
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
add a comment |Â
up vote
19
down vote
Try this:
wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/
-r recursively-l1 to a maximum depth of 1--no-parent ignore links to a higher directory-A "*.deb" your pattern
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
4
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
add a comment |Â
up vote
19
down vote
up vote
19
down vote
Try this:
wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/
-r recursively-l1 to a maximum depth of 1--no-parent ignore links to a higher directory-A "*.deb" your pattern
Try this:
wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/
-r recursively-l1 to a maximum depth of 1--no-parent ignore links to a higher directory-A "*.deb" your pattern
answered Aug 17 '11 at 13:49
n0pe
5,77744294
5,77744294
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
4
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
add a comment |Â
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
4
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them.
â EightBitTony
Aug 17 '11 at 18:57
4
4
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories.
â annndrey
Jul 10 '14 at 13:54
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f18906%2fhow-to-download-specific-files-from-some-url-path-with-wget%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password