V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
rinehart
V2EX  ›  Python

python 多进程 HTTP 下载实现下载超时,有什么好的套路?

  •  
  •   rinehart · 2016-06-27 00:30:48 +08:00 · 2483 次点击
    这是一个创建于 2860 天前的主题,其中的信息可能已经有所发展或是发生改变。

    python 多进程 HTTP 下载多个文件,实现下载超时,有什么好的套路?

    最好能附带进度条,多进程同步之类的。

    2 条回复    2016-06-27 07:20:24 +08:00
    BOYPT
        1
    BOYPT  
       2016-06-27 00:32:26 +08:00
    os.system("wget xxx");
    SuperFashi
        2
    SuperFashi  
       2016-06-27 07:20:24 +08:00 via Android
    楼上可以,或者可以用现成的 aria2 库
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1143 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:00 · PVG 07:00 · LAX 16:00 · JFK 19:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.