Skip to main content

nonebot2解析bilibili插件

Project description

nonebot

nonebot_plugin_analysis_bilibili

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

license pypi python

使用方式

私聊或群聊发送 bilibili 的小程序/链接,所有适配器均可使用,目前某些特性仅在 onebot 适配器中能够使用,例如下面可选项的几个。

额外配置项(可选)

在配置文件中加入(需要什么加什么)

analysis_blacklist = [123456789] # 不解析里面填写的QQ号发的链接 List[int]
analysis_group_blacklist = [123456789] # 不解析里面填写的QQ群号发的链接 List[int]
analysis_desc_blacklist = [123456789] # 里面填写的群号,发送的解析内容不包含简介 List[int]
analysis_display_image = true # 是否显示封面 true/false
analysis_enable_search = false # 是否开启搜视频功能 true/false  example: "搜视频 123456"

# 哪种类型需要显示封面,与上一项相冲突,上一项为true则全开 List[str]
analysis_display_image_list = ["video", "bangumi", "live", "article", "dynamic"]

analysis_trust_env = false # 是否使用环境变量或者当前系统正在使用中的代理设置 true/false

安装

  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")

附:支持 a16 最后一版为 2.4.3

Project details


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.5.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_analysis_bilibili-2.5.2.tar.gz
Algorithm Hash digest
SHA256 1f4f0b1a9f87a55ffcb924af0f880b6b8d0704e8ed84ba359348f80eb018fea8
MD5 3bf9f878ec7ceece6a6ba3e4d50955a4
BLAKE2b-256 a0961c3e8d614778de8044d1f97f09eded54d68cf6d57abb2eb7a66cc5fdbcdf

See more details on using hashes here.

File details

Details for the file nonebot_plugin_analysis_bilibili-2.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_analysis_bilibili-2.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a60752425bd4384e2dabc71e9450a266c704f59a3c75f987103d0327b389a73
MD5 547bd7a4de51a6309ddecafa4221709e
BLAKE2b-256 7fd89109cd9c41d003fc5da2c6d1ac108800e49f2245051b6e27c8e5d2e28091

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page