Ruby on rails Mechanize::ResponseCodeError:405=>;Net::HTTPMethodNotAllowed
我正在尝试使用mechanize从url获取数据 但它给出了405个错误Ruby on rails Mechanize::ResponseCodeError:405=>;Net::HTTPMethodNotAllowed,ruby-on-rails,web-scraping,mechanize,Ruby On Rails,Web Scraping,Mechanize,我正在尝试使用mechanize从url获取数据 但它给出了405个错误 url = "http://switchboard.com/business?key=habitat%20magazine&where=10001" agent.get(url) 错误: Mechanize::ResponseCodeError: 405 => Net::HTTPMethodNotAllowed for http://switchboard.com/business?key=habitat%
url = "http://switchboard.com/business?key=habitat%20magazine&where=10001"
agent.get(url)
错误:
Mechanize::ResponseCodeError: 405 => Net::HTTPMethodNotAllowed for http://switchboard.com/business?key=habitat%20magazine&where=10001 -- unhandled response
我正在使用带有代理的mechanize代理。出现此错误的原因是什么?我检查了其他问题,但没有一个有答案