How to enable an HTTP Proxy in Python
If you are using Python 2's piece-o-crap urllib/urllib2 library mess, here's how to get all the requests to run through an HTTP proxy:
If there is a username an password required:
If there are no credentials required, try this one out:
Now any urllib2 calls made after this will be sent through the proxy.