req urllib2 Request url encodedValues proxy_url http 220 128 67 80 pro

1
2
3
4
5
6
req = urllib2.Request(url,encodedValues)
proxy_url = 'http://220.128.67.2:80/'
proxy_support = urllib2.ProxyHandler({'http': proxy_url})
opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler)
urllib2.install_opener(opener)
data = urllib2.urlopen(req).read()