[Python crawler] Several connection errors

SSLError

HTTPSConnectionPool(host=‘zh.esf.fang.com’, port=443): Max retries exceeded with url: /housing
/671__0_26_0_0_1_0_0_0/ (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’,
‘tls_process_server_certificate’, ‘certificate verify failed’)])”)))

ConnectTimeoutError

HTTPSConnectionPool(host=‘zh.esf.fang.com’, port=443): Max retries exceeded with url: /housing
/671__0_26_0_0_1_0_0_0/ (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection
object at 0x00000250E5C1B4E0>, ‘Connection to 115.221.214.133 timed out. (connect timeout=15)’))

ProxyError-1

HTTPSConnectionPool(host=‘zh.esf.fang.com’, port=443): Max retries exceeded with url: /housing
/671__0_26_0_0_1_0_0_0/ (Caused by ProxyError(‘Cannot connect to proxy.’,
NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x00000250E5938C88>: Failed to
establish a new connection: [WinError 10061] Unable to connect because the target computer actively refused。’)))

ProxyError-2

HTTPSConnectionPool(host=‘zh.esf.fang.com’, port=443): Max retries exceeded with url: /housing
/671__0_26_0_0_1_0_0_0/ (Caused by ProxyError(‘Cannot connect to proxy.’, OSError(‘Tunnel connection failed:
400 Bad Request’)))

71 original articles published · 56 praises · 90,000 + views

Guess you like

Origin blog.csdn.net/baidu_26646129/article/details/105335125