nonebot_plugin_picsearcher
- 基于nonebot2
功能
- 从各个接口查找色图来源,目前支持ascii2d exhentai iqdb saucenao trace.moe
开始使用
建议必须使用 pip
- 通过 pip 从 PyPI 安装
pip install nonebot-plugin-picsearcher
- 在 nonebot2 项目中设置 load_plugin()
nonebot.load_plugin('nonebot_plugin_picsearcher')
- 参照下文在 nonebot2 项目的环境文件 .env.* 中添加配置项
- 使用时at搜图即可
配置项
由于exhentai的接口需要cookie以及fq,因此需要在配置文件
中加入如下选项,没有设置COOKIE时会回退到eh有些loli本就搜不到了
EX_COOKIE=XXXXX
PROXY=XXXX # type: str e.g. PROXY=http://127.0.0.1:8889
SEARCH_LIMIT=2 # 搜索限制 防刷屏
RISK_CONTROL=true # 风控模式 启动后会使用合并转发 只有gocq有实现
RECORD_PRIORITY=99 # 记录上一张图片matcher的优先级,与 上一张 命令有关
更新日志
-
v0.1.4
- 修复了formdata手动改库的问题,改为就地hook aiohttp
- yandex搜图
-
v0.1.5rc1
- 加入可选的
search_limit配置项,确认一次搜索的显示结果数量,默认2 - 加入可选的
proxy选项
- 加入可选的
-
v0.1.6rc1
- 手残的代价(
-
v0.1.6rc2
- 支持nb2.beta1, 需要onebot adapter
-
v0.1.7
- 支持beta2
下一阶段目标
- Yandex? Maybe
特别感谢
优化建议
可以来抓更多网站的接口or汇报bug or pr
Metadata
Release files for nonebot-plugin-picsearcher 0.1.10
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-picsearcher-0.1.10.tar.gz | 24.9 kB | Without provenance | Details for nonebot-plugin-picsearcher-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_picsearcher-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_picsearcher-0.1.10-py3-none-any.whl |
Total release size: 53.2 kB
Release files / nonebot-plugin-picsearcher-0.1.10.tar.gz
| Download URL | nonebot-plugin-picsearcher-0.1.10.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
897029c90a62d8af4c0fa3f5894b2ee49ba7eda58f0a026d29bcbb30be9cfb11
|
|
BLAKE2b-256 checksum How to use checksums |
798a00dfd03d8575ea30a95cfb01216dda18fd03fe104912862d56150a11ad85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / nonebot_plugin_picsearcher-0.1.10-py3-none-any.whl
| Download URL | nonebot_plugin_picsearcher-0.1.10-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53d213d4cf75784129aea2658d3e40509745f66997a9fdd33826d49a4e21013a
|
|
BLAKE2b-256 checksum How to use checksums |
a8b9ab50df513537a192b3ba0260f8d19be51300e3a2317dcc40c72123b8a096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for nonebot-plugin-picsearcher 0.1.10
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.