嘗試使用機械化導航KBB.com。我創建了一個新代理商機械化無法導航KBB.com,獲取Mechanize :: ResponseCodeError:500 => Net :: HTTPInternalServerError
agent = Mechanize.new
工作正常。
page = agent.get('http://www.kbb.com/toyota/mr2/1993-toyota-mr2/
styles/?intent=buy-used')
返回頁面。
page.link_with(:text => "Choose this style").click
給了我這個
page.link_with(:text => "Choose this style").click
Mechanize::ResponseCodeError: 500 => Net::HTTPInternalServerError for
http://www.kbb.com /toyota/mr2/1993-toyota-mr2/coupe-2d/options/?
vehicleid=11263&intent=buy- used&pricetype=&path=&filter= -- unhandled response
正常工作在Craigslist。爲什麼不是kbb?
謝謝你的魅力!你怎麼解決這個問題的? – Kwestion
我在IRB中運行代碼,重現了失敗。我最終重新運行'agent.get'並再次注意到失敗。我意識到第一個請求的工作,但後來的請求失敗。然後,我查找了如何清除餅乾。 –