Re: [問題] 請教 WWW::Mechanize 的問題

看板Perl作者 (Work Smart)時間16年前 (2009/08/18 20:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
請教一下,下面是我的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
文章代碼(AID): #1AYf-e9s (Perl)
討論串 (同標題文章)
文章代碼(AID): #1AYf-e9s (Perl)