推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
angel725
V2EX  ›  Python

python3 的 pycurl 怎么判断下载完成,并开始一个下载

  •  
  •   angel725 · Sep 11, 2018 · 4061 views
    This topic created in 2935 days ago, the information mentioned may be changed or developed.

    几十个 jar 包。如果存在就跳过,否则下载。

    python3 的 pycurl 怎么判断当前文件已经下载完成,

    然后开始下载下一个。

    3 replies  •  2018-09-27 09:38:37 +08:00
    wjidea
        1
    wjidea  
       Sep 12, 2018
    import os
    os.path.isfile()
    angel725
        2
    angel725  
    OP
       Sep 12, 2018
    isfile 不是判断是否是文件吗。
    用它判断下载完了是什么逻辑
    nbboy
        3
    nbboy  
       Sep 27, 2018
    http://pycurl.io/docs/latest/quickstart.html#retrieving-a-network-resource
    阻塞下载的,成功了或者失败就执行下面代码呀。最多你检测一下文件是否完整。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2464 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:11 · PVG 18:11 · LAX 03:11 · JFK 06:11
    ♥ Do have faith in what you're doing.