Nonebot2 插件,Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
Project description
需要能稳定访问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安装无需配置依赖)
展开/收起
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 在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
三.使用
/搜图
/搜图 <图片>
使用示例
搜图结果
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.3.0.tar.gz
.
File metadata
- Download URL: nonebot-plugin-imgexploration-0.3.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d67c8e24cd6e7d5836ff191c9977d06ed86779e1eb192e5684e4d7c9a8ebe61 |
|
MD5 | 7955c3b9ca77b646afe9c5c649919a22 |
|
BLAKE2b-256 | ad36755da7264cf53c471f93fb83d0695cde05b44a3dbbe6a505d88cd60e3db4 |
File details
Details for the file nonebot_plugin_imgexploration-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_imgexploration-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c95ad3841ca5ad29d771df9b6d88c06da341142a89e440ee7948fd1c9162fda |
|
MD5 | 42a5d37f69899d5937b70e7fd66a3830 |
|
BLAKE2b-256 | 327160ef6963872726955715f966c38469216882e84d292bb02521ad3c89a00e |