Skip to content

Instantly share code, notes, and snippets.

@TheGU
Created February 19, 2017 09:08
Show Gist options
  • Save TheGU/e5d490a203be8145e3966120585917b8 to your computer and use it in GitHub Desktop.
Save TheGU/e5d490a203be8145e3966120585917b8 to your computer and use it in GitHub Desktop.
Monkey patch for CERTIFICATE_VERIFY_FAILED when using urllib
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment