一个简洁易用的多线程文件下载工具。
Project description
简介
DownloadKit 是一个基于 python 的简洁易用的多线程文件下载工具。 使用简单,功能强大。
使用文档:点击查看
特性
- 多线程,可同时下载多个文件
- 大文件自动分块用多线程下载
- 自动任务调度,简易的任务添加方式
- 可使用已有
Session
对象,便于保持登录状态 - 与 DrissionPage 良好兼容
- 自动创建目标路径
- 自动去除路径中的非法字符
- 自动处理文件名冲突
- 可对现有文件追加内容
- 连接失败自动重试
简单示例
from DownloadKit import DownloadKit
# 创建下载器对象
d = DownloadKit(r'.\files')
# 添加多个任务
url1 = 'https://gitee.com/static/images/logo.svg?t=158106664'
url2 = 'https://www.baidu.com/img/PCfb_5bf082d29588c07f842ccde3f97243ea.png'
d.download(url1)
d.download(url2)
☕ 请我喝咖啡
如果本项目对您有所帮助,不妨请作者我喝杯咖啡 :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DownloadKit-2.0.0b5.tar.gz
(17.0 kB
view details)
Built Distribution
File details
Details for the file DownloadKit-2.0.0b5.tar.gz
.
File metadata
- Download URL: DownloadKit-2.0.0b5.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58e729ba22d31be4cc7e777c7e1b26d87f2bb5ab23a75aa31b614026504b627 |
|
MD5 | c079c5821fb3c56986e5cef169c48178 |
|
BLAKE2b-256 | fbe977cc1427f51ce6b4584dad297c5cfec0db1212bd00032ee4e0319ccc0142 |
File details
Details for the file DownloadKit-2.0.0b5-py3-none-any.whl
.
File metadata
- Download URL: DownloadKit-2.0.0b5-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c459d1d3a70cd7b5d2522ea14e421e5b0c1bdf4bd674975722ffc104e8cbe29 |
|
MD5 | 65bfca99a642c6360c97c6abc2414e38 |
|
BLAKE2b-256 | 3add381df803c1148f1d20f95dfebb005d168be7a86225c7f2c1ee4140027dc1 |