Home > Archive > PERL Beginners > October 2006 > how to use lwp-download
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to use lwp-download
|
|
| Chen Li 2006-10-30, 7:03 pm |
| Hi all,
I need to download some files from a website. I try
lwp-download and it works fine. But the problem is
that it only supports downloading one file for each
request. Is it possible to ask it download several
files((such as files.*) by issueing one line code ?
Thanks,
Li
###
c:\lwp-download http://www/web/site/page1.html
this line code can only download one page page1.html
only. But I need to download several files in this
format page*.html.
________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| |
| Rob Dixon 2006-10-30, 7:03 pm |
| chen li wrote:
> Hi all,
>
> I need to download some files from a website. I try
> lwp-download and it works fine. But the problem is
> that it only supports downloading one file for each
> request. Is it possible to ask it download several
> files((such as files.*) by issueing one line code ?
>
> Thanks,
>
> Li
>
>
> ###
> c:\lwp-download http://www/web/site/page1.html
>
> this line code can only download one page page1.html
> only. But I need to download several files in this
> format page*.html.
Hi
lwp-download will fetch only one file at a time, but consider writing a batch
file containing multiple activations. A good alternative is Wget, which was
written for this sort of thing and isn't simply a spinoff from a Perl module;
look at http://www.gnu.org/software/wget/.
One final note: you can't in general download wildcarded filenames from an http
server since there is no general way to get a directory listing from such a
site. But Wget will check and download the links within an HTML document for
you.
HTH,
Rob
|
|
|
|
|