Skip to content

Instantly share code, notes, and snippets.

@pigeonflight
Created February 29, 2012 19:08
Show Gist options
  • Save pigeonflight/1943604 to your computer and use it in GitHub Desktop.
Save pigeonflight/1943604 to your computer and use it in GitHub Desktop.
Proxy Aware
# 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