发布时间:2019-08-13 07:35:02编辑:auto阅读(1919)
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元字典
下一篇: python操作Mysql实例
51666
51297
41755
38528
33008
30020
28699
23674
23600
21957
2139°
2847°
2372°
2315°
2845°
2329°
3114°
5100°
4934°
3527°