def test3(): url = "http://www.ip.cn" proxy_handler = urllib2.ProxyHandler({'http' : 'http://username:password@host:port'}) opener = urllib2.build_opener(proxy_handler); urllib2.install_opener(opener) conn = urllib2.urlopen(url) print conn.read()
Python代理设置
原创
©著作权归作者所有:来自51CTO博客作者fatshi的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Nginx文档
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
一日一技:为pip设置代理
为pip设置代理
开发技巧 其他