Skip to main content

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)

Source distribution for bilibili-download-icexmoon 0.0.5
File Size Uploaded
bilibili-download-icexmoon-0.0.5.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bilibili-download-icexmoon 0.0.5
File Interpreter ABI Platform
bilibili_download_icexmoon-0.0.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page