好友
阅读权限25
听众
最后登录1970-1-1
|
本帖最后由 lsyh1688 于 2022-5-12 22:45 编辑
求教如何能下完!!!
没有下载完,下载了426个就报错停止了,下面是报错显示,麻烦给看看。
Traceback (most recent call last):
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 444, in wrap_socket
cnx.do_handshake()
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1907, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1631, in _raise_ssl_error
raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (10060, 'WSAETIMEDOUT')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
chunked=chunked)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 849, in _validate_conn
conn.connect()
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\connection.py", line 356, in connect
ssl_context=context)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\util\ssl_.py", line 359, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 450, in wrap_socket
raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: SysCallError(10060, 'WSAETIMEDOUT')",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\requests\adapters.py", line 445, in send
timeout=timeout
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='gfgl.chhca.org.cn', port=443): Max retries exceeded with url: /pdf/index.asp?gfid=9079 (Caused by SSLError(SSLError("bad handshake: SysCallError(10060, 'WSAETIMEDOUT')")))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:/Pythondata/00 book.py", line 53, in <module>
download(info_list)
File "E:/Pythondata/00 book.py", line 35, in download
resp = requests.get(url=url, headers=headers)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\requests\sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\requests\sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "E:\Pythonsoft1\Anaconda3\lib\site-packages\requests\adapters.py", line 511, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='gfgl.chhca.org.cn', port=443): Max retries exceeded with url: /pdf/index.asp?gfid=9079 (Caused by SSLError(SSLError("bad handshake: SysCallError(10060, 'WSAETIMEDOUT')")))
Process finished with exit code 1
|
|