在Python3中使用以下代码报错:
代码语言:javascript复制import requests
response = requests.get(url='', verify=False)
错误代码如下:
代码语言:javascript复制InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advise
解决:
代码语言:javascript复制import requests
requests.packages.urllib3.disable_warnings()
response = requests.get(url, verify=False)