一个简洁易用的多线程文件下载工具。
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-1.0.4.tar.gz
(17.2 kB
view details)
Built Distribution
File details
Details for the file DownloadKit-1.0.4.tar.gz
.
File metadata
- Download URL: DownloadKit-1.0.4.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 770235dd763ffaa36ad2882f724faa0da9d7685d01e3d70818698190d7336020 |
|
MD5 | 901d5e000f78dae1d3def9fb5c0ad972 |
|
BLAKE2b-256 | bc4eb70c079de781e036adfb4d0a19d67d6a636a1fb33678fc52d15f87a9996d |
File details
Details for the file DownloadKit-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: DownloadKit-1.0.4-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca0db4f602606cf3ed998e7069ece6c85447dd8098e7265c2b2f30bf1cf57dba |
|
MD5 | a0167a1f2203b869a1d15eb38fe75f93 |
|
BLAKE2b-256 | 3a96a41cdf1eb33a69816227574c145e56f85479363e5e40cf122cf23ecd61a9 |