Git Product home page Git Product logo

nonebot_plugin_picsearcher's Introduction

nonebot_plugin_picsearcher

pypi implementation wheel python license

功能

  • 从各个接口查找色图来源,目前支持ascii2d exhentai iqdb saucenao trace.moe

开始使用

建议必须使用 pip

  • 通过 pip 从 PyPI 安装
pip install nonebot-plugin-picsearcher==0.1.6rc2
  • 在 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

nonebot_plugin_picsearcher's People

Contributors

lgc2333 avatar synodriver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.