Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    killbus
    @killbus
    pull 了最新的版本,启用--disable-ssl-check ,出现SLLERROR 后进程会退出是么?
    jamesfjx
    @jamesfjx
    两点想法:1.能否加入致命错误自动重试的功能,我下载大量文件时经常出错,现在的解决方案是写一个用until命令的bash脚本,放在tmux后台;2.能否尝试借鉴或者调用aria2或Axel的多线程下载功能?谢谢!
    Hou Tianze
    @houtianze
    @jamesfjx 1. 现在有重试功能,致命错误是哪种,程序没处理到?2. 这个几个人提过了,我也想把他加了,不过可能需要挺长一段时间。谢谢反馈~
    jamesfjx
    @jamesfjx
    @houtianze 目前没有例子,记得就是一个terminal上一行红字的Fatal Error然后程序就退出了
    jamesfjx
    @jamesfjx
    也许是因为我在墙外,连接不太稳定
    jamesfjx
    @jamesfjx

    App root path at Baidu Yun '/apps/bypy'
    sys.stdin.encoding = UTF-8

    sys.stdout.encoding = UTF-8

    [] 4% (80.0MB/1.646GB) <E> [14:09:32] Waiting 10 seconds before retrying...

    <E> [14:09:42] Request Try #2 / 5
    [=_] 7% (120.0MB/1.646GB) ETA: 1h48m (246KB/s, 8m18s gone) <E> [14:13:34] Fatal Exception, no way to continue.
    Quitting...

    Hou Tianze
    @houtianze
    @jamesfjx 能加-d -v参数运行,然后贴一下输出吗?
    jamesfjx
    @jamesfjx
    最后几行日志:

    ^M[==] 12% (100.0MB/804.922MB) ETA: 13m48s (871KB/s, 1m57s gone) <D> 206 Partial Content

    <D> Request all goes fine

    <D> GET https://d.pcs.baidu.com/rest/2.0/pcs/file

    <D> actargs: (u'/apps/bypy/12.Monkeys.S01E06.720p.HDTV.x264-KILLERS.mkv', 104857600, 844022298, 1426702894.32347)

    <D> Params: {u'path': u'/apps/bypy/12.Monkeys.S01E06.720p.HDTV.x264-KILLERS.mkv', u'method': u'download'}

    <E> [14:26:47] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'

    <E> [14:26:47] Exception:
    HTTPConnectionPool(host='nb.baidupcs.com', port=80): Read timed out.
    Traceback (most recent call last):
    File "/home/jfeng/src/bypy/bypy.py", line 1226, in request_work
    params = parsnew, timeout = self.
    timeout, verify = self.__checkssl, kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
    return request('get', url,
    kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep,
    send_kwargs)
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send
    history = [resp for resp in gen] if allow_redirects else []
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 179, in resolve_redirects
    allow_redirects=False,
    File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 596, in send
    r.content
    File "/usr/lib/python2.7/dist-packages/requests/models.py", line 694, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
    File "/usr/lib/python2.7/dist-packages/requests/models.py", line 627, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
    File "/usr/lib/python2.7/dist-packages/urllib3/response.py", line 242, in stream
    data = self.read(amt=amt, decode_content=decode_content)
    File "/usr/lib/python2.7/dist-packages/urllib3/response.py", line 200, in read
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
    ReadTimeoutError: HTTPConnectionPool(host='nb.baidupcs.com', port=80): Read timed out.

    <E> [14:26:47] Function: __downchunks_act

    <E> [14:26:47] Website parameters: {u'path': u'/apps/bypy/12.Monkeys.S01E06.720p.HDTV.x264-KILLERS.mkv', u'method': u'download'}

    <E> [14:26:47] Fatal Exception, no way to continue.
    Quitting...

    Saving Hash Cache...
    Hash Cache saved.

    Hou Tianze
    @houtianze
    @jamesfjx 看了一下,好像是你的requests库版本过低(这个ReadTimeoutError在我的requests库里面有处理),升级到最新版 sudo pip -U requests试一试?
    Derek.CHAN
    @DeckerCHAN
    是否也可以像shadowsocks一样使用install tool从pip上安装。在系统中也可以直接使用bypy命令。
    Hou Tianze
    @houtianze
    @DeckerCHAN 感谢建议,刚刚在PyPI上占了个位置,后面会改进一下。
    river1987
    @river1987
    AuthServerList 的/auth和/refresh用的是百度的sdk吗?
    Hou Tianze
    @houtianze
    @river1987 算不上吧,直接按百度的文档发个HTTPS request就实现了。
    JoshuaGhost
    @JoshuaGhost
    不好意思打扰了,但是我这里进行authorization之后运行bypy ls命令之后一直显示我在/apps/bypy的一个空目录下,我的百度云的根目录下明明有英语命名的文件,而且就算更改LC_* 成为zh_CN.UTF-8也还是空目录
    Zuozhen
    @zuozhen
    如何下载 /apps/bypy目录以外的文件?
    Hou Tianze
    @houtianze
    @zuozhen 因为授权方式所限,现在没办法读取/apps/bypy外任何东西。。