Skip to main content

Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图

Project description

nonebot

nonebot_plugin_imgexploration

Nonebot2 插件,Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图 ✨

需要能稳定访问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=xxxxx  #saucenao apikey 在https://saucenao.com/user.php?page=search-api注册获取

SESSION_EXPIRE_TIMEOUT=180 #等待用户回复的超时时间(可选) https://v2.nonebot.dev/docs/api/config#Config-session_expire_timeout

三.使用

/搜图
/搜图 <图片>

使用示例

搜图结果

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_imgexploration-0.2.4.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot_plugin_imgexploration-0.2.4.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_imgexploration-0.2.4.tar.gz
Algorithm Hash digest
SHA256 4af306cf444157525be079d72b5e03f8f51b9c66fdd1a73a4f345e0c5b9b5f1d
MD5 33a42790277bec2bc619be0e603d0ed5
BLAKE2b-256 2afae94486d0e63fe47909e770d226ca27cb43fddcb7ba2a1ea9c4d9e7bc29db

See more details on using hashes here.

File details

Details for the file nonebot_plugin_imgexploration-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_imgexploration-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 541c144b63da6289c4e152486f012f8362339075c5af3095e7bc4fb15b652d6e
MD5 42085acb49218e7b035e725fe77e0c45
BLAKE2b-256 f5d54489e7a1d36d337808ceefc575ff5e4145db035a61be4e49f907101bfaa0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page