nonebot2解析bilibili插件
Project description
nonebot_plugin_analysis_bilibili
✨ NoneBot bilibili 视频、番剧解析插件 ✨
使用方式
私聊或群聊发送 bilibili 的小程序/链接,所有适配器均可使用,在不支持发送图片的适配器中仅发送文字。
额外配置项(可选)
在配置文件中加入(需要什么加什么)
# 当图片大小超过下值时,修改图片大小,不填则发送原图,example: 100h / 100w / 100h_100w
analysis_images_size = ""
analysis_cover_images_size = "" # 封面图大小,和上面相同,视频、直播、番剧 封面图使用这个大小
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
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_trust_env = false # 是否使用环境变量或者当前系统正在使用中的代理设置 true/false
安装
- 使用 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")
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
File details
Details for the file nonebot_plugin_analysis_bilibili-2.6.11.tar.gz
.
File metadata
- Download URL: nonebot_plugin_analysis_bilibili-2.6.11.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd38d1e417326a38c7a871a4a2c8a0ee266ebd798fb27cb0e7276dc17f0aece |
|
MD5 | e8623e0ecdf219a64e3675dd1785f78a |
|
BLAKE2b-256 | afe0784cdabe0f67ef5869170a4c5bb5897976539c9163fb01e8a1c1a94bfa27 |
File details
Details for the file nonebot_plugin_analysis_bilibili-2.6.11-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_analysis_bilibili-2.6.11-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f7f4ca9116e0441a45340b35f92fd85d1c351457e9982dc1750dbd45bd65c6 |
|
MD5 | bb72c9c195911855bf2b79c3652cb386 |
|
BLAKE2b-256 | 83afbeb7cb1105bfc251cbda3859fd8ea9465dc7fce595f9a4965b7d17c897ce |