参考:https://blog.csdn.net/win_turn/article/details/77142100
参考:https://www.cnblogs.com/SmileMay51/p/10282040.html
requests请求增加一个verify=False就可以正常【但是会有一个警告!】
增加一个verify=False就可以正常【但是会有一个警告!】
login = requests.post(login_url, login_data, headers=headers, verify=False)
如果要禁用警告弹出加上这段代码
>>> import urllib3
>>> urllib3.disable_warnings()
警告信息:D:\software\Anaconda3\envs\pythonCoinQuantTrade\lib\site-packages\urllib3\connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
取消警告的解决方案:: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
当然,可以不解决,封装一个requests的方法,每个请求都传入verify=False就可以了,并不影响功能【可能是服务器使用的是Python2而导致的ssl认证的问题】