On 04/27/00, "jimi malcolm <[EMAIL PROTECTED]>" wrote:
> is there some example programs out there that will download a web page
> off the inter net (given the address) and will save it as a file on your
> local hard drive? i don't know where to start looking.
>
> if someone could point me in the right direction, that would be enough.
> thank you.
How about a Perl one-liner?:
perl -MLWP::Simple -e 'getprint "http://www.sn.no/libwww-perl/";'
or:
use LWP::Simple;
$doc = get 'http://www.sn.no/libwww-perl/';
Point is, there is (are) a module(s) for this (in case you don't know
enough Perl yet to get it, the module in question is called "LWP"). You
have no idea how advanced Perl already is in doing this. Saving a simple
web page is child's play.
I got these from this URL:
http://theoryx5.uwinnipeg.ca/scripts/CPAN/doc/wwwman/libwww/lwpcook.html
which is a CPAN search.
How about getting every image on pages linked to from a certain Web page?
Or only those on linked to pages, that match a certain regex? Try Grabbage,
at:
http://www.wonderstorm.com/techstuff/Perl_dex.html#Grabbage
HTH,
soren andersen
---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]