当我使用简单的r = requests.get(host)时,我试图解析一个网页,它抛出一个长异常。在
我尝试了this answer中给出的代码,但这次它抛出了一个不同的错误
r = requests.get(host)输出:........
OpenSSL.SSL.SysCallError: (104, 'ECONNRESET')
During handling of the above exception, another exception occurred:
..............
ssl.SSLError: ("bad handshake: SysCallError(104, 'ECONNRESET')",)
During handling of the above exception, another exception occurred:
...... HTTPSConnectionPool(host='xxxxxx', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')")))
During handling of the above exception, another exception occurred:
...........
requests.exceptions.SSLError: HTTPSConnectionPool(host=xxxxx, port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')")))
在使用了答案的密码后:
^{pr2}$