您使用mechanize.Request.set_proxy(host,type)(至少从0.1.11开始)
假设运行在localhost:8888的http代理
req = mechanize.Request("http://www.google.com")req.set_proxy("localhost:8888","http")mechanize.urlopen(req)
应该管用。
您使用mechanize.Request.set_proxy(host,type)(至少从0.1.11开始)
假设运行在localhost:8888的http代理
req = mechanize.Request("http://www.google.com")req.set_proxy("localhost:8888","http")mechanize.urlopen(req)
应该管用。