发布时间:2019-08-13 07:35:02编辑:auto阅读(2117)
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实例
53265
40148
34525
30265
25175
24967
23370
16892
14964
14477
853°
780°
852°
861°
915°
1034°
1028°
1024°
1132°
1044°