AIODL——又一个命令行下载加速器。

aiodl的Python项目详细描述


AIODL

PyPI version

aiodl——又一个命令行下载加速器。

功能

  • 使用多个连接加速下载过程 一个文件。
  • 对网络错误进行合理的重试。
  • 断点恢复。

安装

$ pip3 install aiodl --user
# or
$ sudo pip3 install aiodl

用法

命令行

只需使用url:

调用aiodl
$ aiodl https://dl.google.com/translate/android/Translate.apk

  File: Translate.apk
  Size: 16.8M
  Type: application/vnd.android.package-archive

 11%|████▎                                  | 1.78M/16.0M [00:03<00:26, 565KB/s]

按ctrl+c停止下载。AIODL将保存必要的信息 到<download-file>.aiodl,下次它将自动继续 从这里下载。

其他参数:

--fake-user-agent, -u  Use a fake User-Agent.
--num-tasks N, -n N    Limit number of asynchronous tasks.
--max-tries N, -r N    Limit retries on network errors.

在你的脚本中

importaiodl# in an async functionfilename=awaitaiodl.download('https://dl.google.com/translate/android/Translate.apk',quiet=True)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
文件名的java正则表达式限制名称大小和文件扩展名   Mac上的java Android SDK:jspawnhelper意外退出   java SQL Server 2000到Oracle 12c重音字符   在Java中快速比较大数据集中的值和小数据集中的值   java在代码中的许多地方保留对对象的引用   Java规范中私有内部类的jvm访问标志与反射API不一致?   比较2个int数组中匹配的数字   java Apache Commons数学简化回归:get prediction stderr   安卓 Java SDK管理器因命令行输出中的“flashplayerplugin”而崩溃   JavaSQLite:关闭DB时必须关闭游标吗?   泛型Java设计抽象类声明示例说明   java应用程序在添加片段时崩溃   如何在java中使用注释为字段加载值