<!--
* @Author : mengshouer
* @Date : 2021-03-16 00:00:00
* @LastEditors : mengshouer
* @LastEditTime : 2021-03-16 00:00:00
* @Description : None
* @GitHub : https://github.com/mengshouer/nonebot_plugin_analysis_bilibili
-->
<p align="center">
<a href="https://v2.nonebot.dev/"><img src="https://v2.nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>
</p>
<div align="center">
# nonebot_plugin_analysis_bilibili
_✨ NoneBot bilibili 视频、番剧解析插件 ✨_
</div>
<p align="center">
<a href="https://raw.githubusercontent.com/cscs181/QQ-Github-Bot/master/LICENSE">
<img src="https://img.shields.io/github/license/cscs181/QQ-Github-Bot.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-analysis-bilibili">
<img src="https://img.shields.io/pypi/v/nonebot-plugin-analysis-bilibili.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
</p>
## 使用方式
私聊或群聊发送 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
```
## 安装
1. 使用 nb-cli 安装,不需要手动添加入口,更新使用 pip (推荐)
```
nb plugin install nonebot_plugin_analysis_bilibili
```
2. 使用 pip 安装和更新,初次安装需要手动添加入口 (新版默认不带 bot.py 文件)
```
pip install --upgrade nonebot_plugin_analysis_bilibili
```
pip 安装后在 Nonebot2 入口文件(例如 bot.py )增加:
```python
nonebot.load_plugin("nonebot_plugin_analysis_bilibili")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/mengshouer/nonebot_plugin_analysis_bilibili",
"name": "nonebot-plugin-analysis-bilibili",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "nonebot, nonebot2, bilibili",
"author": "mengshouer",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d0/16/379dacb04aae150628b01c051056055bd3e73c75c65b2028baeac8cc7bc5/nonebot_plugin_analysis_bilibili-2.8.1.tar.gz",
"platform": null,
"description": "<!--\n * @Author : mengshouer\n * @Date : 2021-03-16 00:00:00\n * @LastEditors : mengshouer\n * @LastEditTime : 2021-03-16 00:00:00\n * @Description : None\n * @GitHub : https://github.com/mengshouer/nonebot_plugin_analysis_bilibili\n-->\n\n<p align=\"center\">\n <a href=\"https://v2.nonebot.dev/\"><img src=\"https://v2.nonebot.dev/logo.png\" width=\"200\" height=\"200\" alt=\"nonebot\"></a>\n</p>\n\n<div align=\"center\">\n\n# nonebot_plugin_analysis_bilibili\n\n_\u2728 NoneBot bilibili \u89c6\u9891\u3001\u756a\u5267\u89e3\u6790\u63d2\u4ef6 \u2728_\n\n</div>\n\n<p align=\"center\">\n <a href=\"https://raw.githubusercontent.com/cscs181/QQ-Github-Bot/master/LICENSE\">\n <img src=\"https://img.shields.io/github/license/cscs181/QQ-Github-Bot.svg\" alt=\"license\">\n </a>\n <a href=\"https://pypi.python.org/pypi/nonebot-plugin-analysis-bilibili\">\n <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-analysis-bilibili.svg\" alt=\"pypi\">\n </a>\n <img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"python\">\n</p>\n\n## \u4f7f\u7528\u65b9\u5f0f\n\n\u79c1\u804a\u6216\u7fa4\u804a\u53d1\u9001 bilibili \u7684\u5c0f\u7a0b\u5e8f/\u94fe\u63a5\uff0c\u6240\u6709\u9002\u914d\u5668\u5747\u53ef\u4f7f\u7528\uff0c\u5728\u4e0d\u652f\u6301\u53d1\u9001\u56fe\u7247\u7684\u9002\u914d\u5668\u4e2d\u4ec5\u53d1\u9001\u6587\u5b57\u3002\n\n## \u989d\u5916\u914d\u7f6e\u9879(\u53ef\u9009)\n\n\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u5165(\u9700\u8981\u4ec0\u4e48\u52a0\u4ec0\u4e48)\n\n```\n# \u5f53\u56fe\u7247\u5927\u5c0f\u8d85\u8fc7\u4e0b\u503c\u65f6\uff0c\u4fee\u6539\u56fe\u7247\u5927\u5c0f\uff0c\u4e0d\u586b\u5219\u53d1\u9001\u539f\u56fe\uff0cexample: 100h / 100w / 100h_100w\nanalysis_images_size = \"\"\nanalysis_cover_images_size = \"\" # \u5c01\u9762\u56fe\u5927\u5c0f\uff0c\u548c\u4e0a\u9762\u76f8\u540c\uff0c\u89c6\u9891\u3001\u76f4\u64ad\u3001\u756a\u5267 \u5c01\u9762\u56fe\u4f7f\u7528\u8fd9\u4e2a\u5927\u5c0f\n\nanalysis_whitelist = [123456789] # \u53ea\u89e3\u6790\u91cc\u9762\u586b\u5199\u7684QQ\u53f7\u53d1\u7684\u94fe\u63a5 List[int | str]\nanalysis_group_whitelist = [123456789] # \u53ea\u89e3\u6790\u91cc\u9762\u586b\u5199\u7684QQ\u7fa4\u53f7\u53d1\u7684\u94fe\u63a5 List[int | str]\n# \u586b\u4e86\u4efb\u4f55\u4e00\u4e2a\u767d\u540d\u5355\u540e\uff0c\u9ed1\u540d\u5355\u5931\u6548\nanalysis_blacklist = [123456789] # \u4e0d\u89e3\u6790\u91cc\u9762\u586b\u5199\u7684QQ\u53f7\u53d1\u7684\u94fe\u63a5 List[int | str]\nanalysis_group_blacklist = [123456789] # \u4e0d\u89e3\u6790\u91cc\u9762\u586b\u5199\u7684QQ\u7fa4\u53f7\u53d1\u7684\u94fe\u63a5 List[int | str]\n\nanalysis_desc_blacklist = [123456789] # \u91cc\u9762\u586b\u5199\u7684\u7fa4\u53f7\uff0c\u53d1\u9001\u7684\u89e3\u6790\u5185\u5bb9\u4e0d\u5305\u542b\u7b80\u4ecb List[int | str]\nanalysis_reanalysis_time = 0 # \u540c\u4e00\u4e2a\u89c6\u9891\u91cd\u65b0\u89e3\u6790\u65f6\u95f4\uff0c\u5355\u4f4d\u79d2\uff0c0\u4e3a\u4e0d\u91cd\u65b0\u89e3\u6790\uff0cexample: 60 \uff08\u8bbe\u7f6e\u4e3a 0 \u7684\u65f6\u5019\u53ea\u8bb0\u5f55\u4e0a\u4e00\u4e2a\uff0c\u5927\u4e8e 0 \u65f6\u8bb0\u5f55\u591a\u4e2a\u94fe\u63a5\uff09\nanalysis_display_image = true # \u662f\u5426\u663e\u793a\u5c01\u9762 true/false\n# \u54ea\u79cd\u7c7b\u578b\u9700\u8981\u663e\u793a\u5c01\u9762\uff0c\u4e0e\u4e0a\u4e00\u9879\u76f8\u51b2\u7a81\uff0c\u4e0a\u4e00\u9879\u4e3atrue\u5219\u5168\u5f00 List[str]\nanalysis_display_image_list = [\"video\", \"bangumi\", \"live\", \"article\", \"dynamic\"]\nanalysis_enable_search = false # \u662f\u5426\u5f00\u542f\u641c\u89c6\u9891\u529f\u80fd true/false example: \"\u641c\u89c6\u9891 123456\"\nanalysis_use_on_message = false # \u662f\u5426\u4f7f\u7528 on_message \u5904\u7406\u6d88\u606f\uff0c\u5e76\u4e14\u5904\u7406\u5408\u5e76\u8f6c\u53d1\u7684\u4fe1\u606f\uff0c\u5982\u679c\u9047\u5230 cpu \u5360\u7528\u62c9\u6ee1\u7684\u95ee\u9898 #29\uff0c\u53ef\u4ee5\u8003\u8651\u6253\u5f00\u6b64\u9879\n\n\nanalysis_trust_env = false # \u662f\u5426\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u6216\u8005\u5f53\u524d\u7cfb\u7edf\u6b63\u5728\u4f7f\u7528\u4e2d\u7684\u4ee3\u7406\u8bbe\u7f6e true/false\n```\n\n## \u5b89\u88c5\n\n1. \u4f7f\u7528 nb-cli \u5b89\u88c5\uff0c\u4e0d\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u5165\u53e3\uff0c\u66f4\u65b0\u4f7f\u7528 pip (\u63a8\u8350)\n\n```\nnb plugin install nonebot_plugin_analysis_bilibili\n```\n\n2. \u4f7f\u7528 pip \u5b89\u88c5\u548c\u66f4\u65b0\uff0c\u521d\u6b21\u5b89\u88c5\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u5165\u53e3 \uff08\u65b0\u7248\u9ed8\u8ba4\u4e0d\u5e26 bot.py \u6587\u4ef6\uff09\n\n```\npip install --upgrade nonebot_plugin_analysis_bilibili\n```\n\npip \u5b89\u88c5\u540e\u5728 Nonebot2 \u5165\u53e3\u6587\u4ef6\uff08\u4f8b\u5982 bot.py \uff09\u589e\u52a0\uff1a\n\n```python\nnonebot.load_plugin(\"nonebot_plugin_analysis_bilibili\")\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "nonebot2\u89e3\u6790bilibili\u63d2\u4ef6",
"version": "2.8.1",
"project_urls": {
"Homepage": "https://github.com/mengshouer/nonebot_plugin_analysis_bilibili",
"Repository": "https://github.com/mengshouer/nonebot_plugin_analysis_bilibili"
},
"split_keywords": [
"nonebot",
" nonebot2",
" bilibili"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b73081ce58a3bb3b34c701f09233298c6031e127c9fe4d3aedefe8d077c9737a",
"md5": "f7964e9dd9e215326e4d718c3f48af34",
"sha256": "f882a0428ca87fc77a56fae6013607f6b286d8ae0ed46a1a87b4a1a6d3f4d011"
},
"downloads": -1,
"filename": "nonebot_plugin_analysis_bilibili-2.8.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f7964e9dd9e215326e4d718c3f48af34",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 12394,
"upload_time": "2024-12-10T09:05:53",
"upload_time_iso_8601": "2024-12-10T09:05:53.455119Z",
"url": "https://files.pythonhosted.org/packages/b7/30/81ce58a3bb3b34c701f09233298c6031e127c9fe4d3aedefe8d077c9737a/nonebot_plugin_analysis_bilibili-2.8.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d016379dacb04aae150628b01c051056055bd3e73c75c65b2028baeac8cc7bc5",
"md5": "75cee31f62fc403bb657e36af2d07cb2",
"sha256": "17c2c15a1783a2e1075638861384bd55b3fef09c0c7eb94857f811f60dbb446a"
},
"downloads": -1,
"filename": "nonebot_plugin_analysis_bilibili-2.8.1.tar.gz",
"has_sig": false,
"md5_digest": "75cee31f62fc403bb657e36af2d07cb2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 11842,
"upload_time": "2024-12-10T09:05:56",
"upload_time_iso_8601": "2024-12-10T09:05:56.366836Z",
"url": "https://files.pythonhosted.org/packages/d0/16/379dacb04aae150628b01c051056055bd3e73c75c65b2028baeac8cc7bc5/nonebot_plugin_analysis_bilibili-2.8.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-10 09:05:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mengshouer",
"github_project": "nonebot_plugin_analysis_bilibili",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-analysis-bilibili"
}