我想通過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