nonebot-plugin-imgexploration


Namenonebot-plugin-imgexploration JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/cpuopt/nonebot_plugin_imgexploration
SummaryNonebot2 插件,Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
upload_time2023-05-19 04:37:21
maintainer
docs_urlNone
authorcpufan
requires_python
license
keywords nonebot nonebot-plugin imagesearch
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/"><img src="https://v2.nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>

# nonebot_plugin_imgexploration 

_✨ [Nonebot2](https://github.com/nonebot/nonebot2) 插件,Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图  ✨_



</div> 

**需要能稳定访问Google等网站的代理**  
## 一.**安装**
### 1.使用nb-cli安装
依次执行
```
nb plugin install nonebot_plugin_guild_patch
```
```
nb plugin install nonebot-plugin-imgexploration
```

或其他任意加载方式
### 2.需要字体    
```
HarmonyOS_Sans_SC_Regular.ttf  
HarmonyOS_Sans_SC_Bold.ttf  
HarmonyOS_Sans_SC_Light.ttf
```
https://developer.harmonyos.com/cn/docs/design/des-guides/font-0000001157868583   
安装到系统字体即可

### 3.依赖  (nb-cli或pip安装无需配置依赖)
<details>
<summary>展开/收起</summary>

```
pip install -r requirements.txt
```
go-cqhttp 频道支持适配补丁`nonebot-plugin-guild-patch`  
```
pip install nonebot-plugin-guild-patch
```
在加载本插件前添加
```
nonebot.load_plugin('nonebot_plugin_guild_patch')
```
</details>

## 二.**配置**  
### 1.env中的配置
```
#代理端口号(不使用本地代理可缺省,例如:使用软路由透明代理、程序运行在境外)
proxy_port=xxxx  

#saucenao apikey 在https://saucenao.com/user.php?page=search-api注册获取
saucenao_apikey=xxxxx 

#Google Cookies,在F12开发者控制台寻找google.com的请求并复制cookie字符串
google_cookies=xxxxx

#等待用户回复的超时时间(可选) https://v2.nonebot.dev/docs/api/config#Config-session_expire_timeout
SESSION_EXPIRE_TIMEOUT=180 
```  
## 三.**使用**  
### 
```
/搜图
/搜图 <图片>
```  
### **使用示例**   

<div align=center>
    <img decoding="async" align="middle" src="https://p.inari.site/usr/369/63b6cfe0cd8a8.jpg" width="80%">
</div>

### 搜图结果

<div align=center>
    <img decoding="async" align="middle" src="https://p.inari.site/usr/369/63b6cd6f24abc.jpg" height="1280px">
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cpuopt/nonebot_plugin_imgexploration",
    "name": "nonebot-plugin-imgexploration",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "nonebot nonebot-plugin imagesearch",
    "author": "cpufan",
    "author_email": "cpufan2001@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/db/e8/47f626069256ef9599236874ce03629be450708f416f8ab4c111c602ffcb/nonebot-plugin-imgexploration-0.3.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\r\n<a href=\"https://v2.nonebot.dev/\"><img src=\"https://v2.nonebot.dev/logo.png\" width=\"200\" height=\"200\" alt=\"nonebot\"></a>\r\n\r\n# nonebot_plugin_imgexploration \r\n\r\n_\u2728 [Nonebot2](https://github.com/nonebot/nonebot2) \u63d2\u4ef6\uff0cGoogle\u3001Yandx\u548c\u57fa\u4e8ePicImageSearch\u7684saucenao\u3001ascii2d\u641c\u56fe  \u2728_\r\n\r\n\r\n\r\n</div> \r\n\r\n**\u9700\u8981\u80fd\u7a33\u5b9a\u8bbf\u95eeGoogle\u7b49\u7f51\u7ad9\u7684\u4ee3\u7406**  \r\n## \u4e00.**\u5b89\u88c5**\r\n### 1.\u4f7f\u7528nb-cli\u5b89\u88c5\r\n\u4f9d\u6b21\u6267\u884c\r\n```\r\nnb plugin install nonebot_plugin_guild_patch\r\n```\r\n```\r\nnb plugin install nonebot-plugin-imgexploration\r\n```\r\n\r\n\u6216\u5176\u4ed6\u4efb\u610f\u52a0\u8f7d\u65b9\u5f0f\r\n### 2.\u9700\u8981\u5b57\u4f53    \r\n```\r\nHarmonyOS_Sans_SC_Regular.ttf  \r\nHarmonyOS_Sans_SC_Bold.ttf  \r\nHarmonyOS_Sans_SC_Light.ttf\r\n```\r\nhttps://developer.harmonyos.com/cn/docs/design/des-guides/font-0000001157868583   \r\n\u5b89\u88c5\u5230\u7cfb\u7edf\u5b57\u4f53\u5373\u53ef\r\n\r\n### 3.\u4f9d\u8d56  (nb-cli\u6216pip\u5b89\u88c5\u65e0\u9700\u914d\u7f6e\u4f9d\u8d56)\r\n<details>\r\n<summary>\u5c55\u5f00/\u6536\u8d77</summary>\r\n\r\n```\r\npip install -r requirements.txt\r\n```\r\ngo-cqhttp \u9891\u9053\u652f\u6301\u9002\u914d\u8865\u4e01`nonebot-plugin-guild-patch`  \r\n```\r\npip install nonebot-plugin-guild-patch\r\n```\r\n\u5728\u52a0\u8f7d\u672c\u63d2\u4ef6\u524d\u6dfb\u52a0\r\n```\r\nnonebot.load_plugin('nonebot_plugin_guild_patch')\r\n```\r\n</details>\r\n\r\n## \u4e8c.**\u914d\u7f6e**  \r\n### 1.env\u4e2d\u7684\u914d\u7f6e\r\n```\r\n#\u4ee3\u7406\u7aef\u53e3\u53f7(\u4e0d\u4f7f\u7528\u672c\u5730\u4ee3\u7406\u53ef\u7f3a\u7701\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528\u8f6f\u8def\u7531\u900f\u660e\u4ee3\u7406\u3001\u7a0b\u5e8f\u8fd0\u884c\u5728\u5883\u5916)\r\nproxy_port=xxxx  \r\n\r\n#saucenao apikey \u5728https://saucenao.com/user.php?page=search-api\u6ce8\u518c\u83b7\u53d6\r\nsaucenao_apikey=xxxxx \r\n\r\n#Google Cookies\uff0c\u5728F12\u5f00\u53d1\u8005\u63a7\u5236\u53f0\u5bfb\u627egoogle.com\u7684\u8bf7\u6c42\u5e76\u590d\u5236cookie\u5b57\u7b26\u4e32\r\ngoogle_cookies=xxxxx\r\n\r\n#\u7b49\u5f85\u7528\u6237\u56de\u590d\u7684\u8d85\u65f6\u65f6\u95f4(\u53ef\u9009) https://v2.nonebot.dev/docs/api/config#Config-session_expire_timeout\r\nSESSION_EXPIRE_TIMEOUT=180 \r\n```  \r\n## \u4e09.**\u4f7f\u7528**  \r\n### \r\n```\r\n/\u641c\u56fe\r\n/\u641c\u56fe <\u56fe\u7247>\r\n```  \r\n### **\u4f7f\u7528\u793a\u4f8b**   \r\n\r\n<div align=center>\r\n    <img decoding=\"async\" align=\"middle\" src=\"https://p.inari.site/usr/369/63b6cfe0cd8a8.jpg\" width=\"80%\">\r\n</div>\r\n\r\n### \u641c\u56fe\u7ed3\u679c\r\n\r\n<div align=center>\r\n    <img decoding=\"async\" align=\"middle\" src=\"https://p.inari.site/usr/369/63b6cd6f24abc.jpg\" height=\"1280px\">\r\n</div>\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Nonebot2 \u63d2\u4ef6\uff0cGoogle\u3001Yandx\u548c\u57fa\u4e8ePicImageSearch\u7684saucenao\u3001ascii2d\u641c\u56fe",
    "version": "0.3.1",
    "project_urls": {
        "Homepage": "https://github.com/cpuopt/nonebot_plugin_imgexploration"
    },
    "split_keywords": [
        "nonebot",
        "nonebot-plugin",
        "imagesearch"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d465c9ad98b595d840a7ba3c8f90ff4cb7d27d5e9d34413b758ed0868899a3df",
                "md5": "fc8c27e5ba6d44d7dec755435cd98a68",
                "sha256": "75eab1f46bc707d5c694e20c5719fa5dc383594ee1e67337f755fd4987aeb087"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_imgexploration-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fc8c27e5ba6d44d7dec755435cd98a68",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10697,
            "upload_time": "2023-05-19T04:37:19",
            "upload_time_iso_8601": "2023-05-19T04:37:19.836422Z",
            "url": "https://files.pythonhosted.org/packages/d4/65/c9ad98b595d840a7ba3c8f90ff4cb7d27d5e9d34413b758ed0868899a3df/nonebot_plugin_imgexploration-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dbe847f626069256ef9599236874ce03629be450708f416f8ab4c111c602ffcb",
                "md5": "6fff357aec99e613ea08898ad47e3b93",
                "sha256": "c4a228d7ad43c09b9f4cb189c555d7a4a833897c9e97fc629a6c39e2b46ab9a9"
            },
            "downloads": -1,
            "filename": "nonebot-plugin-imgexploration-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6fff357aec99e613ea08898ad47e3b93",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14138,
            "upload_time": "2023-05-19T04:37:21",
            "upload_time_iso_8601": "2023-05-19T04:37:21.970291Z",
            "url": "https://files.pythonhosted.org/packages/db/e8/47f626069256ef9599236874ce03629be450708f416f8ab4c111c602ffcb/nonebot-plugin-imgexploration-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-19 04:37:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cpuopt",
    "github_project": "nonebot_plugin_imgexploration",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "nonebot-plugin-imgexploration"
}
        
Elapsed time: 0.06486s