Skip to main content

nonebot

nonebot_plugin_analysis_bilibili

✨ NoneBot bilibili 视频、番剧解析插件 ✨

license pypi python

使用方式

私聊或群聊发送 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"

安装

  1. 使用 nb-cli 安装,不需要手动添加入口,更新使用 pip (推荐)
nb plugin install nonebot_plugin_analysis_bilibili
  1. 使用 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-analysis-bilibili 2.8.3
File Size Uploaded Provenance Actions
nonebot_plugin_analysis_bilibili-2.8.3.tar.gz 15.1 kB Without provenance Details for nonebot_plugin_analysis_bilibili-2.8.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-analysis-bilibili 2.8.3
File Interpreter ABI Platform Actions
nonebot_plugin_analysis_bilibili-2.8.3-py3-none-any.whl Python 3 none any Details for nonebot_plugin_analysis_bilibili-2.8.3-py3-none-any.whl

Total release size: 30.6 kB

Release files / nonebot_plugin_analysis_bilibili-2.8.3.tar.gz

Download URL nonebot_plugin_analysis_bilibili-2.8.3.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
60dc1e415a16d3c4040db177de9c8fa1e10ba090ccb939d91009db07f02f741c
BLAKE2b-256 checksum
How to use checksums
b9245ae90a9a5084f47e3c1fefbaf221b673cbeed22b5116aee2f4ba5d96186d
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.3-py3-none-any.whl

Download URL nonebot_plugin_analysis_bilibili-2.8.3-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24f3d2a854ec5df92bac3f1d21df7d14282370ae9b1a86804c396192e48837f5
BLAKE2b-256 checksum
How to use checksums
6e4f5fcd70f6b0723c441d6390c047e2d1fb19b0e240ef33eeaea0e03229d01a
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.3

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.

Release history Release notifications | RSS feed

This release

2.8.3 This release

2 release files No provenance

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