开发者

Download webpage source to a string in Perl

How do I do it?

I would also like to use a prox开发者_运维百科y. How do I do that?


use WWW::Mechanize;

my $mech = WWW::Mechanize->new();
$mech->get("http://foo.com/bar");
my $content = $mech->res()->content();

For the proxy, see the Mechanize FAQ.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜