在Python3中使用以下代碼報(bào)錯:
requests.get(url, verify=False)
錯誤代碼如下:
InsecureRequestWarning: Unverified HTTPS requestisbeing made. Adding certificate verificationisstrongly advised. See:
方法:
在語句前加上以下代碼即可不會被報(bào)錯:
requests.packages.urllib3.disable_warnings()