Skip to main content

Help download lot vedio from bilibili

Project description

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

即可开始下载。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bilibili-download-icexmoon-0.0.5.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file bilibili-download-icexmoon-0.0.5.tar.gz.

File metadata

File hashes

Hashes for bilibili-download-icexmoon-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7e2579a3a3805eb0fa385abf07c79e67029c1afa0cf6d8f3610b9ef84706c545
MD5 5fc3a49605301514a97721cfaae8f4ae
BLAKE2b-256 07d14fd25880a07d48bc37b24d0101436c7b1452d896d8a483457eb404681bbc

See more details on using hashes here.

File details

Details for the file bilibili_download_icexmoon-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for bilibili_download_icexmoon-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf6768b21fbc8867def3e9447ca33a64195a18e23bbd3119e6c66e2991bb3e6
MD5 64e4df69735f5515a7b74d874fa9dcbb
BLAKE2b-256 953b99b9e6464a9af0a569ebd341a1952eb5a317e88a2b801bb225524e09a643

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page