请问,在Ruby下的Mechanize模块可以使用vpn代理访问网页吗?
走同样的路,发现不同的人生
Of course, you can also use a proxyhttp://mechanize.rubyforge.org/EXAMPLES_rdoc.html
require 'rubygems' require 'mechanize' agent = Mechanize.new agent.set_proxy 'localhost', 8000 page = agent.get(ARGV[0]) puts page.body
Of course, you can also use a proxy
http://mechanize.rubyforge.org/EXAMPLES_rdoc.html