📖 介绍
本插件可以解析 Bilibili 视频,并提取出视频中的音乐和歌词(基于字幕故可能不准)。
/bm或/bilimusic指令来解析视频。/bm group或/bilimusic group指令来解析视频所在集合,并且打包为一个文件。
💿 安装
你可以使用 nb plugin install nonebot_plugin_bilimusic 来安装此插件。
⚙️ 配置
在 NoneBot2 项目的 .env 文件中添加下表中的配置:
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| bilimusic_limit | 否 | 2 | 对请求速率的限制 |
| bilimusic_cookie | 否 | 空 | 获取歌词所必须的 B 站账号口令 |
🎉 使用
指令表
| 名称 | 权限 | 说明 |
|---|---|---|
| bm / bilimusic | 无 | 解析视频,需附带参数(可以是BV号或是链接) |
| bm group / bilimusic group | 无 | 解析视频所在集合,需附带参数(可以是BV号或是链接) |
获取 Cookie
- 打开浏览器,进入 Bilibili 主页,登陆你的账号。
- 按 F12 打开开发者工具,切换到 Network 标签。
- 刷新页面,在 Network 标签下找到并点击
www.bilibili.com请求。 - 打开
Headers或者标头标签,找到 Cookie 字段,复制其内容(无需复制Cookie:前缀)。
Metadata
Release files for nonebot_plugin_bilimusic 1.1.1
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 |
|---|---|---|---|---|
| nonebot_plugin_bilimusic-1.1.1.tar.gz | 17.9 kB | Without provenance | Details for nonebot_plugin_bilimusic-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_bilimusic-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_bilimusic-1.1.1-py3-none-any.whl |
Total release size: 37.1 kB
Release files / nonebot_plugin_bilimusic-1.1.1.tar.gz
| Download URL | nonebot_plugin_bilimusic-1.1.1.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6320a303f0e573d4c89bd795fa95210a6bd1c292072a031bf12994fe4da78bd5
|
|
BLAKE2b-256 checksum How to use checksums |
955b8620085f6cffe9ad8498dc6d093734f03b0707ee125ca96f3b20b5be39b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Darwin/23.6.0
|
Release files / nonebot_plugin_bilimusic-1.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_bilimusic-1.1.1-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b99522e657f8bc30bdd78018908a8d2ea7c1be2e5e768b140fd64efc69659ec1
|
|
BLAKE2b-256 checksum How to use checksums |
f610a58825a7ce0dc987dc8387a2979483f0a400c7f92b095f228aeb61885f92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Darwin/23.6.0
|
Security for nonebot_plugin_bilimusic 1.1.1
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.