Nonebot2 插件,Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
Project description
需要能稳定访问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安装无需配置依赖)
展开/收起
pip install -r requirements.txt
二.配置
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"
#等待用户回复的超时时间(可选) 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.4.2.tar.gz
.
File metadata
- Download URL: nonebot-plugin-imgexploration-0.4.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72783700fb760bc8837cbc7eff55741a0b8b2f219cccaa0bfe5c003a804a1e10 |
|
MD5 | bdd42408ebe5ec1f01908fff136d3cbf |
|
BLAKE2b-256 | 8c5d2c9b78852a487d7b16dd82ec2c1affa8a9bac6ade955ffa2550941422731 |
File details
Details for the file nonebot_plugin_imgexploration-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_imgexploration-0.4.2-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac294801088bfd2b4fcd29ccd6b4902853e3cb27276028f6bf62cda2569f08b |
|
MD5 | 4f6f32f65f783e13ee2038cb8c7f5db1 |
|
BLAKE2b-256 | 9c50cd09c6c3b8755696b8ae3b0d150a7a8687a1181dccb8109155ba679477ea |