Git Product home page Git Product logo

Comments (12)

houtianze avatar houtianze commented on August 30, 2024

Sound like a bug, will take a look. Thanks for the feedback.

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

试了最新版,还是不行,这次也创建了文件,但大小为零。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

未能重现问题,我再看看。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

如果出现这个错误:

    data = self._sock.recv(left)
timeout: timed out

Abort

可能是百度网络超时(不能完全确定)

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

刚刚试了最新版,貌似正在下载那个300mb的文件,目前已经下载了30mb。

等一下我再报告一下。

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

这次下载了33,554,432 bytes之后就停了。

程序没有出错,只是停在那里:

<D> Downloading '/apps/bypy/VIDEO_TSVTS_04_1.VOB' as 'VIDEO_TSVTS_04_1.VOB'
<D> Checking if we already have the copy locally
<D> GET https://d.pcs.baidu.com/rest/2.0/pcs/file
<D> actargs: (u'/apps/bypy/VIDEO_TSVTS_04_1.VOB', 0)
<D> Params: {u'path': u'/apps/bypy/VIDEO_TSVTS_04_1.VOB', u'method': u'download'}
<D> HTTP Status Code: 200
<D> Request OK, processing action

按了 ctrl-c 之后:

^CSignal 2 received, Abort
Frame:
<frame object at 0x55b9a0>
Not saving Hash Cache since 'dirty' is 'False' and 'force_saving' is 'False'

from bypy.

houtianze avatar houtianze commented on August 30, 2024

这样啊,我试试下载一个1G的文件看看怎么样。
不过现在应该支持断点续传了,Ctrl-C后再跑一下同样的命令,应该可以续传。

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

试了一下最新版本:

git pull
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From https://github.com/houtianze/bypy
   3fa420f..18b34ec  master     -> origin/master
Updating 3fa420f..18b34ec
Fast-forward
 bypy.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

目前已经下载了75mb,看这次能否下完。

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

这次下载了106,954,752 bytes, 又停住了。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

又改正了一下,最新版我测试一下好像可以断点续传了。

我下载4G多的东西,到1.2G没问题,然后我就Ctrl-C了。
有时候下载开始,Python Requests库就直接timed out,不会下载。感觉像是网盘的网络问题,不过暂时想不到如何应对解决。。

from bypy.

gadget1999 avatar gadget1999 commented on August 30, 2024

这个和我的情况差不多,大文件中间要断很多回,重新跑就能再多下些。如果有重试功能就好了。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

考虑改进中,这个周末也许会完成。

from bypy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.