作者bigbb (乡长老爷)
看板CSSE
标题Re: [问题] 写自动豋入网页要用啥程式??
时间Tue May 15 14:08:30 2007
Perl 的话,参考
WWW::Mechanizeシ
http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm
网页上的范例:
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$mech->get( $url ); # Web Site URL
$mech->follow_link( n => 3 );
$mech->follow_link( text_regex => qr/download this/i );
$mech->follow_link( url => '
http://host.com/index.html' );
$mech->submit_form(
form_number => 3,
fields => {
username => 'mungo',
password => 'lost-and-alone',
}
);
※ 引述《blanchard80 (kate)》之铭言:
: 各位先进大大好
: 小弟想要写一个程式,那个程式希望能自动登入yahoo的信箱,
: 去抓一些我信箱内的资料。不晓得要用哪种程式写比较方便。
: 之前小弟有使用Perl写,可是都无法完成自动登入。
: 希望各位大大能给小第一点方向,谢谢。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.109.22.217