A picsearch plugin for nonebot2
Project description
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
特别注意
- 由于aiohttp的某些神奇实现,默认的FormData类需要被稍微调教一下
- 但是在v0.1.4由本地的patch代替了改库的过程,动不动库无所谓了
没有aiohttp的patch会怎样?
那得问问那些网站愿不愿意了()
更新日志
- v0.1.4
- 修复了formdata手动改库的问题,改为就地hook aiohttp
- yandex搜图
下一阶段目标
- Yandex? Maybe
特别感谢
优化建议
可以来抓更多网站的接口or汇报bug or pr
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
Close
Hashes for nonebot-plugin-picsearcher-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290607e390e1c697ade8327a1dff28b5034a810f5c6e1af310ccf8e58ce37db1 |
|
MD5 | 53773496783c7233b95faa5068079eab |
|
BLAKE2b-256 | 56c1928deb347b2c5df083332482b92cd9eb26b7a53a7fccb33f8134330ab48e |
Close
Hashes for nonebot_plugin_picsearcher-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ba6f602d3ae738cad6217bce13340a9455ee57884883655abe740716d1cf26 |
|
MD5 | 745573a667ef73bb9a246f9294e33095 |
|
BLAKE2b-256 | 01d2539889d0458b4a437046d9c7dd1eb7faafb899620a65a7961810f81d0521 |