解决方法:
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