nonebot-plugin-analysis-bilibili


Namenonebot-plugin-analysis-bilibili JSON
Version 2.7.2 PyPI version JSON
download
home_pagehttps://github.com/mengshouer/nonebot_plugin_analysis_bilibili
Summarynonebot2解析bilibili插件
upload_time2024-07-04 15:48:08
maintainerNone
docs_urlNone
authormengshouer
requires_python<4.0,>=3.8
licenseMIT
keywords nonebot nonebot2 bilibili
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
 * @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_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
```

## 安装

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/9d/28/9b76a8773e5dd384c74b3a34af7c615802e1c2da6e8e8fec8d1e7865c82f/nonebot_plugin_analysis_bilibili-2.7.2.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\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]\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\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\"\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.7.2",
    "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": "3afc2e1c402069ccb0c1f6d82aa59ffcf2e6e005245fb2f7666ebecead35f881",
                "md5": "2209151406165bb1f3431ee3f1362e32",
                "sha256": "267827f93c671c4e38aefcd812b16c074da2a1caa3b40b09fe732048b6c4b610"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_analysis_bilibili-2.7.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2209151406165bb1f3431ee3f1362e32",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 10901,
            "upload_time": "2024-07-04T15:48:06",
            "upload_time_iso_8601": "2024-07-04T15:48:06.184235Z",
            "url": "https://files.pythonhosted.org/packages/3a/fc/2e1c402069ccb0c1f6d82aa59ffcf2e6e005245fb2f7666ebecead35f881/nonebot_plugin_analysis_bilibili-2.7.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d289b76a8773e5dd384c74b3a34af7c615802e1c2da6e8e8fec8d1e7865c82f",
                "md5": "57999ff34968f492fab9cc5fef496ea9",
                "sha256": "be087f88b6b3a8cc93e4838d1297774d954fd282b8088836372deb48f1fdc04c"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_analysis_bilibili-2.7.2.tar.gz",
            "has_sig": false,
            "md5_digest": "57999ff34968f492fab9cc5fef496ea9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 10407,
            "upload_time": "2024-07-04T15:48:08",
            "upload_time_iso_8601": "2024-07-04T15:48:08.645178Z",
            "url": "https://files.pythonhosted.org/packages/9d/28/9b76a8773e5dd384c74b3a34af7c615802e1c2da6e8e8fec8d1e7865c82f/nonebot_plugin_analysis_bilibili-2.7.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-04 15:48:08",
    "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"
}
        
Elapsed time: 0.26977s