官网:http://mechanize.rubyforge.org登录require'rubygems'require'mechanize'require'logger'#Mechanize.log=Logger.new(STDOUT)agent=Mechanize.new#ppagent.methods.sort.grep(/agent/)agent.user_agent_alias='MacSafari'#ppagent.user_agentpage=agent.get('https...
查看全文