Created
August 18, 2016 05:55
-
-
Save fengxuway/1d90f0f7737ce74e7cb7f12769db6df4 to your computer and use it in GitHub Desktop.
调用接口报错解决办法: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
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
import ssl | |
context = ssl._create_unverified_context() | |
urllib.urlopen("https://no-valid-cert", context=context) | |
requests.get('URL', verify=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment