Re: How to download multiple "numbered" files with wget



Theo v. Werkhoven wrote:
The carbonbased lifeform Christian Herenz inspired alt.os.linux with:
Theo v. Werkhoven wrote:
for i in $(seq 100);do curl -O http://bla.edu/~foouser/$i.html;done

Thank you very much, works as expected :-) I will remember that!
Is there an advantage in using curl instead of wget??

Curl has more options when it comes to downloading and saving data from
websites, specially with GET and POST actions.
For your application it doesn't really matter.

Theo

from the curl manual:

or you can get sequences of alphanumeric series by using [] asin:

ftp://ftp.numericals.com/file[1-100].txt
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
ftp://ftp.letters.com/file[a-z].txt


wouldn't that matter for my application? :-)

greets,
christian

.



Relevant Pages

  • Re: Auto submitting a form that contains a file field
    ... Client end is NOT php. ...  Thanks, - Dave ... post-file in wget or the equivalent in CURL to do the thing. ...
    (comp.lang.php)
  • Re: Command-line file downloader
    ... including cURL and wget at ... The lack of recursive downloading is a pretty significant hit against ... OK, thats now rhetoric, but LFS support was introduced just recently. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: fetch extension - use local filename from content-dispositionheader (new diff)
    ... > use wget or curl instead? ... > get to endure such helpful attitudes? ... to accept patches to implement the feature you need for your scripts. ...
    (freebsd-current)
  • Re: [PHP] spider
    ... In another word: WGET ... But has anyone seen a PHP port of wget ... or is curl the only one of the 2 which does it natively in a compiled ... True, but some sites require natively running instead of running things via exec, system, etc... ...
    (php.general)
  • Re: [PHP] spider
    ... In another word: WGET ... Both are pretty effecitve and give pretty much the same results, ... But has anyone seen a PHP port of wget ... or is curl the only one of the 2 which does it natively in a compiled ...
    (php.general)