Created
February 29, 2012 19:08
-
-
Save pigeonflight/1943604 to your computer and use it in GitHub Desktop.
Proxy Aware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add these lines to your script so that it will become proxy aware | |
# it assumes that you have set an http_proxy and or https_proxy | |
# export http_proxy=myproxy:8080 | |
# export https_proxy=myproxy:8080 | |
opener = urllib2.build_opener() | |
urllib2.install_opener(opener) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment