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
Perl 的話,參考
WWW::Mechanizeシ