作者eleghost (Work Smart)
看板Perl
標題Re: [問題] 請教 WWW::Mechanize 的問題
時間Tue Aug 18 20:33:43 2009
請教一下,下面是我的code, 我想做個自動投票的程式..
可是這段code好像沒法達成,可以告訴我甚麼問題嗎?
謝謝
use WWW::Mechanize;
my $mech=WWW::Mechanize->new();
my $url='
http://tbca.npo.org.tw/activity/life3.asp?qafileitem_serno=26';
$mech->get($url);
$mech->form_number(1);
$mech->field('Cell' => '0911143528');
$mech->submit();
print $mech->response->status_line, "\n";
$mech->submit();
※ 引述《eleghost (Work Smart)》之銘言:
: 最近想寫個線上投票程式,目前是參考
: http://jck11.pixnet.net/blog/post/4654651
: 但是有些地方不知道要怎樣得到資訊,例如 :
: $mech->field('textfield22' => 'xxxxxxxx');
: 請問textfield22是甚麼意思呢?
: 有人可以跟我說一下嗎? 謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.117.196.92