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
更新日志
-
v0.1.4
- 修复了formdata手动改库的问题,改为就地hook aiohttp
- yandex搜图
-
v0.1.5rc1
- 加入可选的
search_limit
配置项,确认一次搜索的显示结果数量,默认2
- 加入可选的
proxy
选项
- 加入可选的
下一阶段目标
- 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.5rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b0308ad65dada9f296bfd509f05ef6a186766877f7f7a2f2bf0eabe392bbd97 |
|
MD5 | 0458bcfb973023f08bac0a068d3a640a |
|
BLAKE2b-256 | a723d8ccb04fb7473a53e024019a755ab8560b07bc3983dd50456e8c833ca149 |
Close
Hashes for nonebot_plugin_picsearcher-0.1.5rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a2bd22eb68808adeda3f1a9c5597a53a6ebf94b40a8da7d39fdf958d8c8ffe |
|
MD5 | dee4535efd0bd572506f3428c9d43882 |
|
BLAKE2b-256 | 0af1740ce1de103b7948a23bef40c5c22019f88aabf3619d3a2829c7f98aa1a4 |