在Python3中使用以下代码报错:
requests.get(url, verify=False)
错误代码如下:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See:
方法:
在语句前加上以下代码即可不会被报错:
requests.packages.urllib3.disable_warnings()
亲测可用,完美!