需要能稳定访问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 json文件路径,建议使用Chrome插件Cookie-Editor复制导出json并手动存入文件
google_cookies_filepath="C:\Users\...\google_cookies.json"
#等待用户回复的超时时间(可选)
#注意,nonebot2新版本该配置项格式有变化!请根据nonebot版本参照文档 https://nonebot.dev/docs/api/config#Config-session-expire-timeout
#SESSION_EXPIRE_TIMEOUT=180
#SESSION_EXPIRE_TIMEOUT=PT3M
三.使用
/搜图
/搜图 <图片>
使用示例
搜图结果
Metadata
Release files for nonebot-plugin-imgexploration 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-imgexploration-0.4.4.tar.gz | 14.9 kB | Without provenance | Details for nonebot-plugin-imgexploration-0.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_imgexploration-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_imgexploration-0.4.4-py3-none-any.whl |
Total release size: 26.4 kB
Release files / nonebot-plugin-imgexploration-0.4.4.tar.gz
| Download URL | nonebot-plugin-imgexploration-0.4.4.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbcebb00b1096285279e993ab6f3932e8aeb6b37664d68e22675fa69fbc8dcf8
|
|
BLAKE2b-256 checksum How to use checksums |
7ea718844e6aa57b8c6e43f1357f40fb267e14ae96cd96d77018d050d6512ddc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.5
|
Release files / nonebot_plugin_imgexploration-0.4.4-py3-none-any.whl
| Download URL | nonebot_plugin_imgexploration-0.4.4-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2be9a0e5c660aa814bdc0acb6f37a4b41695587ba3e6a2407d44a9393f44e626
|
|
BLAKE2b-256 checksum How to use checksums |
70b6934ef24072d6157bcda2bdfee2cbbf5f2161579dfe2b93bcac1b9f1e3f70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.5
|
Security for nonebot-plugin-imgexploration 0.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.