[Nh-pm] How to save complete web page not just text?
Andrew Brosnan
andrew at broscom.com
Fri Jun 24 10:41:49 PDT 2005
On 6/24/05 at 1:13 PM, jameskel at adelphia.net (James Kellndorfer) wrote:
> I have a very simple task.
>
> I'm just trying to save this complete webpage:
> http://marketrac.nyse.com/ot/ordertrac_detail.html
>
This fetches exacly the same as the source viewed in my browesr:
#!/usr/bin/perl
use warnings;
use strict;
use LWP::Simple;
my $pg = get("http://marketrac.nyse.com/ot/ordertrac_detail.html");
print "Here is the page: \n\n $pg";
The following one liner also works fine:
perl -MLWP::Simple -e 'getprint
"http://marketrac.nyse.com/ot/ordertrac_detail.html"'
Regards,
Andrew
--
Andrew Brosnan - Broscom LLC - 1 207 925-1156
andrew at broscom.com - http://www.broscom.com
Websites, Hosting, Programming, Consulting
More information about the Nh-pm
mailing list