Skip to content

Instantly share code, notes, and snippets.

@natemcmaster
Created July 21, 2014 23:19
Show Gist options
  • Select an option

  • Save natemcmaster/037e4ddd6db10f9c3b65 to your computer and use it in GitHub Desktop.

Select an option

Save natemcmaster/037e4ddd6db10f9c3b65 to your computer and use it in GitHub Desktop.
def install_proxy():
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:63029'})
opener = urllib2.build_opener(proxy)
urllib2.install_opener(opener)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment