我正在使用 WWW::Mechanize 从网页中检索表单:
#!/usr/bin/perl
use WWW::Mechanize;
my $mechanize = WWW::Mechanize->new();
$mechanize->proxy(['http', 'ftp'], 'http://proxy/');
$mechanize->get("http://www.temp.com/");
$mechanize->form_id('signin');
网站HTML代码如下
<form action="https://www.temp.com/session" id="signin" method="post">
但我得到了错误
There is no form with ID "signin" at SiteScraper.pl
我该怎么办?