首先打开charles,在Proxy中打开Windows Proxy,这样才能抓取本地请求python代码中报错Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)')原因是Python requests 设置verify=False移除SSL认证加上之后还需要解决InsecureRequestWarning警告。urllib3.disable_warnings()