bilibili-download
介绍
本工具用于批量下载 B 站指定用户的专辑视频。
具体下载单个视频使用
you-get工具,安装时会自动检测安装,如果出现问题也可以手动自行安装。
声明
本工具禁止用于商业用途。
安装
pip install bilibili-download-icexmoon
更新
pip install bilibili-download-icexmoon --upgrade
使用说明
需要定义一个下载用描述文件download.json。
文件格式为 json,格式如下:
{
"homeDir": "D:/workspace/bilibili/tests/download",
"users": [
{
"id": "581567817",
"albums": [
{
"id": "1036613",
"redoTimes": 5
},
{
"id": "764241",
"redoTimes": 5
}
]
}
],
"apiRetryMax": 50
}
其中元素的含义为:
- homeDir,下载视频保存的根目录,下载好的视频会按照专辑 id 作为子目录进行保存,默认为当前目录。
- users,待下载的用户信息。
- users.id,用户id
- users.albums,用户专辑信息
- albums.id,专辑id
- albums.redoTimes,专辑下载额外重试次数(接口有调用限制,单次下载部分视频会缺失),默认10
- apiRetryMax,接口调用重试最大次数,默认50
定义好后在 json 文件所在的目录执行:
bb-download
即可开始下载。
Metadata
Release files for bilibili-download-icexmoon 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bilibili-download-icexmoon-0.0.5.tar.gz | 7.6 kB | Without provenance | Details for bilibili-download-icexmoon-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bilibili_download_icexmoon-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for bilibili_download_icexmoon-0.0.5-py3-none-any.whl |
Total release size: 16.3 kB
Release files / bilibili-download-icexmoon-0.0.5.tar.gz
| Download URL | bilibili-download-icexmoon-0.0.5.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e2579a3a3805eb0fa385abf07c79e67029c1afa0cf6d8f3610b9ef84706c545
|
|
BLAKE2b-256 checksum How to use checksums |
07d14fd25880a07d48bc37b24d0101436c7b1452d896d8a483457eb404681bbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / bilibili_download_icexmoon-0.0.5-py3-none-any.whl
| Download URL | bilibili_download_icexmoon-0.0.5-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cf6768b21fbc8867def3e9447ca33a64195a18e23bbd3119e6c66e2991bb3e6
|
|
BLAKE2b-256 checksum How to use checksums |
953b99b9e6464a9af0a569ebd341a1952eb5a317e88a2b801bb225524e09a643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for bilibili-download-icexmoon 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.