InsecureRequestWarning: Unverified HTTPS request is being made to host ‘127.0.0.1‘.

解决方法:

logging.captureWarnings(True)

相关错误:

SSL安全认证
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘movie.douban.com’, port=443): Max retries exceeded with url: /top250 (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1125)’)))

解决方法:

requests.get(url,verify=False)
即在请求方式中加入verify=False

猜你喜欢

转载自blog.csdn.net/m0_59416550/article/details/127377666