使用方式
私聊或群聊发送 bilibili 的小程序/链接,所有适配器均可使用,在不支持发送图片的适配器中仅发送文字。
额外配置项(可选)
在配置文件中加入(需要什么加什么)
# 当图片大小超过下值时,修改图片大小,不填则发送原图,example: 100h / 100w / 100h_100w
analysis_images_size = ""
analysis_cover_images_size = "" # 封面图大小,和上面相同,视频、直播、番剧 封面图使用这个大小
analysis_whitelist = [123456789] # 只解析里面填写的QQ号发的链接 List[int | str]
analysis_group_whitelist = [123456789] # 只解析里面填写的QQ群号发的链接 List[int | str]
# 填了任何一个白名单后,黑名单失效
analysis_blacklist = [123456789] # 不解析里面填写的QQ号发的链接 List[int | str]
analysis_group_blacklist = [123456789] # 不解析里面填写的QQ群号发的链接 List[int | str]
analysis_desc_blacklist = [123456789] # 里面填写的群号,发送的解析内容不包含简介 List[int | str]
analysis_reanalysis_time = 0 # 同一个视频重新解析时间,单位秒,0为不重新解析,example: 60 (设置为 0 的时候只记录上一个,大于 0 时记录多个链接)
analysis_display_image = true # 是否显示封面 true/false
# 哪种类型需要显示封面,与上一项相冲突,上一项为true则全开 List[str]
analysis_display_image_list = ["video", "bangumi", "live", "article", "dynamic"]
analysis_enable_search = false # 是否开启搜视频功能 true/false example: "搜视频 123456"
analysis_use_on_message = false # 是否使用 on_message 处理消息,并且处理合并转发的信息,如果遇到 cpu 占用拉满的问题 #29,可以考虑打开此项
analysis_trust_env = false # 是否使用环境变量或者当前系统正在使用中的代理设置 true/false
# 可选:整段指定 B 站 cookie,不填则自动获取匿名指纹
analysis_bilibili_cookie = "buvid3=xxx; buvid4=xxx; bili_ticket=xxx; SESSDATA=xxx"
安装
- 使用 nb-cli 安装,不需要手动添加入口,更新使用 pip (推荐)
nb plugin install nonebot_plugin_analysis_bilibili
- 使用 pip 安装和更新,初次安装需要手动添加入口 (新版默认不带 bot.py 文件)
pip install --upgrade nonebot_plugin_analysis_bilibili
pip 安装后在 Nonebot2 入口文件(例如 bot.py )增加:
nonebot.load_plugin("nonebot_plugin_analysis_bilibili")
Metadata
Release files for nonebot-plugin-analysis-bilibili 2.8.4
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_analysis_bilibili-2.8.4.tar.gz | 15.7 kB | Without provenance | Details for nonebot_plugin_analysis_bilibili-2.8.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_analysis_bilibili-2.8.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_analysis_bilibili-2.8.4-py3-none-any.whl |
Total release size: 31.8 kB
Release files / nonebot_plugin_analysis_bilibili-2.8.4.tar.gz
| Download URL | nonebot_plugin_analysis_bilibili-2.8.4.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f7c67dcac576ed5e3aa3da40274de4c87e35f832d464f452322d7c46e21f372
|
|
BLAKE2b-256 checksum How to use checksums |
a67e22ed25ba3cf20112ec43019ad9354c1e6b5ff926f44f7eb9b12dbc8508af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / nonebot_plugin_analysis_bilibili-2.8.4-py3-none-any.whl
| Download URL | nonebot_plugin_analysis_bilibili-2.8.4-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
777a6af233de3d0c1d7999673a6ad165b5ab97047abdeaf46fca3533cad90d7c
|
|
BLAKE2b-256 checksum How to use checksums |
badfe3404ee35fc9d3e58a93d17addcf95c0a0f618c27b511e48bd18485ef776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for nonebot-plugin-analysis-bilibili 2.8.4
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.