【python requestsエラー】Max retries exceeded with url解決
416 ワード
エラーのタイプは次のとおりです.
原因分析:html=requestsを使用する.get(url)というhttp接続が多すぎて閉じていないため
解決策:
Max retries exceeded with url
version=1 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'SSL23_GET_SERVER_HELLO', 'sslv3 alert handshake failure')],)",),))
原因分析:html=requestsを使用する.get(url)というhttp接続が多すぎて閉じていないため
解決策:
s = requests.session()
s.keep_alive = False #
s.get(url) #