<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-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
```
</details>
## 二.**配置**
### 1.env中的配置
```
#代理端口号(不使用本地代理可缺省,例如:使用软路由透明代理、程序运行在境外)
proxy_port=7890
#saucenao apikey 在https://saucenao.com/user.php?page=search-api注册获取
saucenao_apikey=xxxxx
#Google Cookies,在F12开发者控制台寻找google.com的请求并复制cookie字符串
google_cookies="google_cookies"
#等待用户回复的超时时间(可选)
#注意,nonebot2新版本该配置项格式有变化!请根据nonebot版本参照文档 https://nonebot.dev/docs/api/config#Config-session-expire-timeout
#SESSION_EXPIRE_TIMEOUT=180
#SESSION_EXPIRE_TIMEOUT=PT3M
```
## 三.**使用**
###
```
/搜图
/搜图 <图片>
```
### **使用示例**
<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": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "nonebot nonebot-plugin imagesearch",
"author": "cpufan",
"author_email": "cpufan2001@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/28/71/4cf158aca223f3a5251bdf565c5dae96d3ab8d460e1b06ee4aca2475578b/nonebot-plugin-imgexploration-0.4.3.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\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\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=7890 \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=\"google_cookies\"\r\n\r\n#\u7b49\u5f85\u7528\u6237\u56de\u590d\u7684\u8d85\u65f6\u65f6\u95f4(\u53ef\u9009)\r\n#\u6ce8\u610f\uff0cnonebot2\u65b0\u7248\u672c\u8be5\u914d\u7f6e\u9879\u683c\u5f0f\u6709\u53d8\u5316\uff01\u8bf7\u6839\u636enonebot\u7248\u672c\u53c2\u7167\u6587\u6863 https://nonebot.dev/docs/api/config#Config-session-expire-timeout\r\n#SESSION_EXPIRE_TIMEOUT=180\r\n#SESSION_EXPIRE_TIMEOUT=PT3M \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": null,
"summary": "Nonebot2 \u63d2\u4ef6\uff0cGoogle\u3001Yandx\u548c\u57fa\u4e8ePicImageSearch\u7684saucenao\u3001ascii2d\u641c\u56fe",
"version": "0.4.3",
"project_urls": {
"Homepage": "https://github.com/cpuopt/nonebot_plugin_imgexploration"
},
"split_keywords": [
"nonebot",
"nonebot-plugin",
"imagesearch"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "23058b02be829598da7144c38c5aa1a59c0b83d0a31012a2f0a8774cc2d22cc7",
"md5": "0f2cc3b56ee7f896c9130ecc3dd90f6e",
"sha256": "dfa3a402f3e70e2c85a95ce926705d80ce80432d2539af24f2cd199736724dd4"
},
"downloads": -1,
"filename": "nonebot_plugin_imgexploration-0.4.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0f2cc3b56ee7f896c9130ecc3dd90f6e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10900,
"upload_time": "2024-12-06T15:13:47",
"upload_time_iso_8601": "2024-12-06T15:13:47.138027Z",
"url": "https://files.pythonhosted.org/packages/23/05/8b02be829598da7144c38c5aa1a59c0b83d0a31012a2f0a8774cc2d22cc7/nonebot_plugin_imgexploration-0.4.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "28714cf158aca223f3a5251bdf565c5dae96d3ab8d460e1b06ee4aca2475578b",
"md5": "b67a430546358c01d124ccd02618a547",
"sha256": "bd4e73488c34758b1b6af6166f95220c23b7fc3953317c1418f44b3d6de2c21b"
},
"downloads": -1,
"filename": "nonebot-plugin-imgexploration-0.4.3.tar.gz",
"has_sig": false,
"md5_digest": "b67a430546358c01d124ccd02618a547",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14207,
"upload_time": "2024-12-06T15:13:49",
"upload_time_iso_8601": "2024-12-06T15:13:49.529567Z",
"url": "https://files.pythonhosted.org/packages/28/71/4cf158aca223f3a5251bdf565c5dae96d3ab8d460e1b06ee4aca2475578b/nonebot-plugin-imgexploration-0.4.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-06 15:13:49",
"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": [
{
"name": "httpx",
"specs": [
[
">=",
"0.23.1"
]
]
},
{
"name": "loguru",
"specs": [
[
">=",
"0.6.0"
]
]
},
{
"name": "lxml",
"specs": [
[
">=",
"4.9.2"
]
]
},
{
"name": "Pillow",
"specs": [
[
">=",
"9.3.0"
]
]
},
{
"name": "nonebot2",
"specs": [
[
">=",
"2.0.0rc2"
]
]
},
{
"name": "nonebot-adapter-onebot",
"specs": [
[
">=",
"2.1.5"
]
]
},
{
"name": "PicImageSearch",
"specs": [
[
">=",
"3.7.4"
]
]
},
{
"name": "brotli",
"specs": [
[
">=",
"1.0.0"
]
]
}
],
"lcname": "nonebot-plugin-imgexploration"
}