我想通过Perl模块WWW :: Mechanize搜索yellowpages.com。WWW :: Mechanize和yellowpages.com
$mech->get("http://www.yellowpages.com");
$mech->form_name("standard-searchform");
$mech->field("search-terms, "schneider");
$mech->field("search-location", "CA");
$mech->submit();
我也试过$ mech-> submit_form(...)与按钮值/类型,但我得到了以下信息所有的时间:
Error POSTing http://www.yellowpages.com/real_deals: Internal Server Error at /usr/lib/cgi-bin/index.pl line 39
39号线是
$mech->submit();
是yp.com转发机械化到该网站?我怎样才能避免这种情况?
我已回滚到修订1,因为这个问题没有意义,否则。 (别担心,我们都会犯错:)) – Zaid