一款基于 Nonebot2 的 Bilibili 视频提取音乐和歌词插件。
Project description
nonebot-plugin-bilimusic
✨ 一款基于 Nonebot2 的 Bilibili 视频提取音乐和歌词插件。 ✨
📖 介绍
本插件可以解析 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
[!CAUTION] 此功能需要 Bilibili 账号,对于获取的 Cookie 请妥善保管!如果因此导致账号被盗或是封禁,作者概不负责。
- 打开浏览器,进入 Bilibili 主页,登陆你的账号。
- 按 F12 打开开发者工具,切换到 Network 标签。
- 刷新页面,在 Network 标签下找到并点击
www.bilibili.com请求。 - 打开
Headers或者标头标签,找到 Cookie 字段,复制其内容(无需复制Cookie:前缀)。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_bilimusic-1.1.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_bilimusic-1.1.1.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6320a303f0e573d4c89bd795fa95210a6bd1c292072a031bf12994fe4da78bd5
|
|
| MD5 |
9ead0a51072f42cc20e3164aace99fb6
|
|
| BLAKE2b-256 |
955b8620085f6cffe9ad8498dc6d093734f03b0707ee125ca96f3b20b5be39b2
|
File details
Details for the file nonebot_plugin_bilimusic-1.1.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_bilimusic-1.1.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b99522e657f8bc30bdd78018908a8d2ea7c1be2e5e768b140fd64efc69659ec1
|
|
| MD5 |
6230af9982924584776a1d4c68bff295
|
|
| BLAKE2b-256 |
f610a58825a7ce0dc987dc8387a2979483f0a400c7f92b095f228aeb61885f92
|