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

Solution:

logging.captureWarnings(True)

Related errors:

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)’)))

Solution:

requests.get(url, verify=False)
adds verify=False to the request method

Guess you like

Origin blog.csdn.net/m0_59416550/article/details/127377666