nonebot-plugin-resolver


Namenonebot-plugin-resolver JSON
Version 1.1.13 PyPI version JSON
download
home_pagehttps://github.com/zhiyu1998/nonebot-plugin-resolver
SummaryNoneBot2链接分享解析器插件。解析视频、图片链接/小程序插件,tiktok、bilibili、twitter等实时发送!
upload_time2024-07-14 12:04:53
maintainerNone
docs_urlNone
authorzhiyu1998
requires_python<4.0,>=3.9
licenseNone
keywords nonebot nonebot2 resolver
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-resolver

_✨ NoneBot2 链接分享解析器插件 ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/owner/nonebot-plugin-resolver.svg" alt="license">
</a>
<a href="https://pypi.org/project/nonebot-plugin-resolver">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-resolver.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">

</div>

## 📖 介绍

适用于NoneBot2的解析视频、图片链接/小程序插件,tiktok、bilibili、twitter等实时发送!
## 💿 安装

1. 使用 nb-cli 安装,不需要手动添加入口,更新使用 pip

```
nb plugin install nonebot-plugin-resolver
```

2. 使用 pip 安装和更新,初次安装需要手动添加入口

```
pip install --upgrade nonebot-plugin-resolver
```

3. 【可选】安装`am`解析必要的依赖
```shell
npm install -g freyr
# 或者你有yarn的话可以使用
yarn global add freyr
# 接着安装它的依赖
apt-get install atomicparsley
```

## ⚙️ 配置

在 nonebot2 项目的`.env`文件中添加下表中的可选配置

```
DOUYIN_CK='' # douyin's cookie, 快速教程:https://thumbsnap.com/rKxUGKqp, 格式:odin_tt=xxx;passport_fe_beating_status=xxx;sid_guard=xxx;uid_tt=xxx;uid_tt_ss=xxx;sid_tt=xxx;sessionid=xxx;sessionid_ss=xxx;sid_ucp_v1=xxx;ssid_ucp_v1=xxx;passport_assist_user=xxx;ttwid=xxx;
IS_OVERSEA=False # 是否是海外服务器部署
IS_LAGRANGE=False # 是否是拉格朗日(https://github.com/KonataDev/Lagrange.Core)
RESOLVER_PROXY = "http://127.0.0.1:7890" # 代理
R_GLOBAL_NICKNAME = "R插件极速版" # 解析前缀名
```

## 🤺 交流群

<img src="./img/group.JPG" width="30%" height="30%">

## 🎉 使用 & 效果图
<img src="./img/example.webp" width="50%" height="50%">
<img src="./img/example2.webp" width="50%" height="50%">
<img src="./img/example3.webp" width="50%" height="50%">
<img src="./img/example4.webp" width="50%" height="50%">
<img src="./img/example5.webp" width="50%" height="50%">

## 贡献

同时感谢以下开发者对 `Nonebot - R插件` 作出的贡献:

<a href="https://github.com/zhiyu1998/nonebot-plugin-resolver/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=zhiyu1998/nonebot-plugin-resolver&max=1000" />
</a>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zhiyu1998/nonebot-plugin-resolver",
    "name": "nonebot-plugin-resolver",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "nonebot, nonebot2, resolver",
    "author": "zhiyu1998",
    "author_email": "renzhiyu0416@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/4c/a6/3121d67bf609769b073314686366c4669478303209d8760b89ad912e56b7/nonebot_plugin_resolver-1.1.13.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n  <br>\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-resolver\n\n_\u2728 NoneBot2 \u94fe\u63a5\u5206\u4eab\u89e3\u6790\u5668\u63d2\u4ef6 \u2728_\n\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/owner/nonebot-plugin-resolver.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.org/project/nonebot-plugin-resolver\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-resolver.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u9002\u7528\u4e8eNoneBot2\u7684\u89e3\u6790\u89c6\u9891\u3001\u56fe\u7247\u94fe\u63a5/\u5c0f\u7a0b\u5e8f\u63d2\u4ef6\uff0ctiktok\u3001bilibili\u3001twitter\u7b49\u5b9e\u65f6\u53d1\u9001\uff01\n## \ud83d\udcbf \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\n\n```\nnb plugin install nonebot-plugin-resolver\n```\n\n2. \u4f7f\u7528 pip \u5b89\u88c5\u548c\u66f4\u65b0\uff0c\u521d\u6b21\u5b89\u88c5\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u5165\u53e3\n\n```\npip install --upgrade nonebot-plugin-resolver\n```\n\n3. \u3010\u53ef\u9009\u3011\u5b89\u88c5`am`\u89e3\u6790\u5fc5\u8981\u7684\u4f9d\u8d56\n```shell\nnpm install -g freyr\n# \u6216\u8005\u4f60\u6709yarn\u7684\u8bdd\u53ef\u4ee5\u4f7f\u7528\nyarn global add freyr\n# \u63a5\u7740\u5b89\u88c5\u5b83\u7684\u4f9d\u8d56\napt-get install atomicparsley\n```\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u5728 nonebot2 \u9879\u76ee\u7684`.env`\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0b\u8868\u4e2d\u7684\u53ef\u9009\u914d\u7f6e\n\n```\nDOUYIN_CK='' # douyin's cookie, \u5feb\u901f\u6559\u7a0b\uff1ahttps://thumbsnap.com/rKxUGKqp, \u683c\u5f0f\uff1aodin_tt=xxx;passport_fe_beating_status=xxx;sid_guard=xxx;uid_tt=xxx;uid_tt_ss=xxx;sid_tt=xxx;sessionid=xxx;sessionid_ss=xxx;sid_ucp_v1=xxx;ssid_ucp_v1=xxx;passport_assist_user=xxx;ttwid=xxx;\nIS_OVERSEA=False # \u662f\u5426\u662f\u6d77\u5916\u670d\u52a1\u5668\u90e8\u7f72\nIS_LAGRANGE=False # \u662f\u5426\u662f\u62c9\u683c\u6717\u65e5\uff08https://github.com/KonataDev/Lagrange.Core\uff09\nRESOLVER_PROXY = \"http://127.0.0.1:7890\" # \u4ee3\u7406\nR_GLOBAL_NICKNAME = \"R\u63d2\u4ef6\u6781\u901f\u7248\" # \u89e3\u6790\u524d\u7f00\u540d\n```\n\n## \ud83e\udd3a \u4ea4\u6d41\u7fa4\n\n<img src=\"./img/group.JPG\" width=\"30%\" height=\"30%\">\n\n## \ud83c\udf89 \u4f7f\u7528 & \u6548\u679c\u56fe\n<img src=\"./img/example.webp\" width=\"50%\" height=\"50%\">\n<img src=\"./img/example2.webp\" width=\"50%\" height=\"50%\">\n<img src=\"./img/example3.webp\" width=\"50%\" height=\"50%\">\n<img src=\"./img/example4.webp\" width=\"50%\" height=\"50%\">\n<img src=\"./img/example5.webp\" width=\"50%\" height=\"50%\">\n\n## \u8d21\u732e\n\n\u540c\u65f6\u611f\u8c22\u4ee5\u4e0b\u5f00\u53d1\u8005\u5bf9 `Nonebot - R\u63d2\u4ef6` \u4f5c\u51fa\u7684\u8d21\u732e\uff1a\n\n<a href=\"https://github.com/zhiyu1998/nonebot-plugin-resolver/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=zhiyu1998/nonebot-plugin-resolver&max=1000\" />\n</a>\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "NoneBot2\u94fe\u63a5\u5206\u4eab\u89e3\u6790\u5668\u63d2\u4ef6\u3002\u89e3\u6790\u89c6\u9891\u3001\u56fe\u7247\u94fe\u63a5/\u5c0f\u7a0b\u5e8f\u63d2\u4ef6\uff0ctiktok\u3001bilibili\u3001twitter\u7b49\u5b9e\u65f6\u53d1\u9001\uff01",
    "version": "1.1.13",
    "project_urls": {
        "Homepage": "https://github.com/zhiyu1998/nonebot-plugin-resolver",
        "Repository": "https://github.com/zhiyu1998/nonebot-plugin-resolver"
    },
    "split_keywords": [
        "nonebot",
        " nonebot2",
        " resolver"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0bf97009471b0741889e01badddd06ee0a117272f469d2da890415a78e28565b",
                "md5": "ac430b46e206d7d1f22135c9020d9dbb",
                "sha256": "1414e94638eaa95c303e737e268f400d387d857ff3501fc3865dbca714f6184c"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_resolver-1.1.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ac430b46e206d7d1f22135c9020d9dbb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 28667,
            "upload_time": "2024-07-14T12:04:51",
            "upload_time_iso_8601": "2024-07-14T12:04:51.710180Z",
            "url": "https://files.pythonhosted.org/packages/0b/f9/7009471b0741889e01badddd06ee0a117272f469d2da890415a78e28565b/nonebot_plugin_resolver-1.1.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ca63121d67bf609769b073314686366c4669478303209d8760b89ad912e56b7",
                "md5": "dac2999f9ed4e241d447b4a9b538a85f",
                "sha256": "105e9d311aeb12ad2a179f4157620a430946d24c7dd13ff5f66f3ee4aa645e0a"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_resolver-1.1.13.tar.gz",
            "has_sig": false,
            "md5_digest": "dac2999f9ed4e241d447b4a9b538a85f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 25417,
            "upload_time": "2024-07-14T12:04:53",
            "upload_time_iso_8601": "2024-07-14T12:04:53.256391Z",
            "url": "https://files.pythonhosted.org/packages/4c/a6/3121d67bf609769b073314686366c4669478303209d8760b89ad912e56b7/nonebot_plugin_resolver-1.1.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-14 12:04:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zhiyu1998",
    "github_project": "nonebot-plugin-resolver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-resolver"
}
        
Elapsed time: 0.27020s