用perl抓取网页内容
08月 13th, 2008 ychen Posted in 未分类 |
my $url = ‘http://your web site’;
use LWP::Simple;
my $content = get $url;
die “Couldn’t get $url” unless defined $content;
# Then go do things with $content, like this:
print $content;
如此简单
08月 13th, 2008 ychen Posted in 未分类 |
my $url = ‘http://your web site’;
use LWP::Simple;
my $content = get $url;
die “Couldn’t get $url” unless defined $content;
# Then go do things with $content, like this:
print $content;
如此简单
Leave a Reply