1.requests.exceptions.SSLError: HTTPSConnectionPool(host='xxx.com', port=443)
解决方案:
r = requests.get('https://www.12306.cn', verify=False)
参考:https://blog.csdn.net/a19990412/article/details/80358084
2.InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.
解决方案:
import urllib3 requests.packages.urllib3.disable_warnings()
参考:See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
https://www.jianshu.com/p/7bacf7d9ae5a