How to use HTTP/HTTPS proxies in Python2?
1. You must create a file called testproxy.py, containing:Import urllib2proxy_handler = urllib2.ProxyHandler({"HTTP":"1.2.3.4:8800", "HTTPS":"1.2.3.4:8800"})opener = urllib2.build_opener(proxy_handler)urllib2.install_opener(opener)HTML = urllib2.urlopen("http://www.google.com").read()print HTML2. Run the script using:python testproxy.py