Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
Project description
nonebot_plugin_imgexploration
Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
需要能稳定访问Google等网站的代理
一.安装
1.安装
pip install nonebot-plugin-imgexploration
然后在bot.py中添加(注意顺序)
nonebot.load_plugin('nonebot_plugin_guild_patch')
nonebot.load_plugin('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.依赖 (使用pip安装无需以下步骤)
pip install -r requirements.txt
go-cqhttp 频道支持适配补丁nonebot-plugin-guild-patch
pip install nonebot-plugin-guild-patch
在加载本插件前添加
nonebot.load_plugin('nonebot_plugin_guild_patch')
二.配置
1.env中的配置
proxy_port=xxxx #代理端口号
saucenao_apikey=xxxxx #saucenao apikey
SESSION_EXPIRE_TIMEOUT=180 #等待用户回复的超时时间(可选) https://v2.nonebot.dev/docs/api/config#Config-session_expire_timeout
三.使用
/搜图
/搜图 <图片>
使用示例
搜图结果
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_plugin_imgexploration-0.2.1.tar.gz
.
File metadata
- Download URL: nonebot_plugin_imgexploration-0.2.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 546bab5ab2448ddf4381b1b6ca3dcfed99bd20b64326374d3e11195212129963 |
|
MD5 | 3542bdbe490a069c5690bdaa3af1912a |
|
BLAKE2b-256 | 59f6a22348f716f94092aa8c09668903d014c0301bc99de7c6c22b0ba13c4357 |
File details
Details for the file nonebot_plugin_imgexploration-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_imgexploration-0.2.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54af37426767a61efc338bf48c0b1f51ee8473af1e5c9b00e6d4c80b02f28f04 |
|
MD5 | cfdd1da2dbd3b4d74649689e2731129d |
|
BLAKE2b-256 | 027c8579d748cc440f182ec649d3fbb0662ef4f7221de9d7168e9720ccc961dc |