sdvcrx / pan-baidu-download

百度网盘下载脚本
MIT License
435 stars 103 forks source link

下载时报错 #18

Closed BevisGoh closed 9 years ago

BevisGoh commented 9 years ago

Hi, 我在 Ubuntu 14.04 运行 python bddown_cli.py download ”url“ 时报错,如下:

Traceback (most recent call last): File "bddown_cli.py", line 53, in execute_command() File "bddown_cli.py", line 49, in execute_command commandscommand File "/root/baidu/command/download.py", line 56, in download info = pan.get_dlink(url, secret) File "/root/baidu/bddown_core.py", line 102, in get_dlink js = self._get_js(link, secret) File "/root/baidu/bddown_core.py", line 91, in _get_js req = self.session.get(link) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 477, in get return self.request('GET', url, _kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request resp = self.send(prep, _send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error(110, 'Connection timed out'))

BevisGoh commented 9 years ago

在另一台电脑试了,还是报错:

Traceback (most recent call last): File "bddown_cli.py", line 53, in execute_command() File "bddown_cli.py", line 49, in execute_command commandscommand File "/root/baidu/command/download.py", line 56, in download info = pan.get_dlink(url, secret) File "/root/baidu/bddown_core.py", line 102, in get_dlink js = self._get_js(link, secret) File "/root/baidu/bddown_core.py", line 91, in _get_js req = self.session.get(link) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 477, in get return self.request('GET', url, _kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request resp = self.send(prep, _send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error(110, 'Connection timed out'))

运行环境: uname -r -> 3.13.0-54-generic aria2c --version -> aria2 version 1.18.1 python -V -> Python 2.7.6

sdvcrx commented 9 years ago

Connection timed out应该是你网络的问题,我这边一切正常

BevisGoh commented 9 years ago

的确是网络问题,现在可以了,谢谢