Skip to main content

Nonebot2 插件,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-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


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.4.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot-plugin-imgexploration-0.4.0.tar.gz.

File metadata

File hashes

Hashes for nonebot-plugin-imgexploration-0.4.0.tar.gz
Algorithm Hash digest
SHA256 93cb58dae4d7a854998ec2bf6442ed22902d8825281649bc0af04ee761ca8be4
MD5 ed5f9ea98b51faed2c2d13c3873b335c
BLAKE2b-256 d0679c721876a26f324bea7e31628bdaedce7d55038ebd70887c5b5417318f8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_imgexploration-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1abe460e520200d2ac69cea22e3c98fe1d4de9fc88bf248407311d1e4403fd
MD5 e36e51f3edfe422e9f0b31f3d6f0d377
BLAKE2b-256 f0fd2a35f067fd09d53e3831883f1292114b14f7b54f9839cd2347825c94ec90

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