(重构中)一个以高性能、高效率、高兼容性和多功能为目标、多框架/平台支持(和兼容)的Pixiv聊天机器人。
Go to file
2020-06-10 15:47:30 +08:00
.github/ISSUE_TEMPLATE [Update] Bug_Report.md 增加默认标签; 2020-06-04 10:50:37 +08:00
documents/interfaces [Delete] search.txt 删除旧文档; 2020-06-06 17:57:24 +08:00
src [Fix] log4j2.xml 修复日志配置错误的问题; 2020-06-10 15:46:33 +08:00
.gitignore [Change] .gitignore 将Idea项目文件由指定文件名改为匹配后缀名; 2020-05-26 10:28:46 +08:00
Dockerfile.sample [Change] Dockerfile.sample 调整构建指令顺序以充分利用构建缓存; 2020-05-04 17:07:39 +08:00
LICENSE [Change] 更改开源许可证; 2020-06-10 10:44:53 +08:00
pom.xml [Version] 更新版本(2.5.2-20200610.2-SNAPSHOT -> 2.5.2-20200610.3-SNAPSHOT); 2020-06-10 15:47:30 +08:00
README.md [Add] README.md 增加'LICENSE'部分; 2020-06-10 14:41:12 +08:00

ContentGrabbingJi

Pixiv爬虫一只同时也是一个机器人/插件!

支持的机器人平台

Usage

注意: 运行色图姬前, 你需要准备一个Pixiv账号的会话Cookie存储文件, 否则色图姬将无法运行.
详见PixivLoginProxyServer项目的Readme.

Arguments

ENV参数名为环境变量名, 用于给Docker容器提供设置方式.

  • 通用参数
    • -proxy / ENV: CGJ_PROXY: (可选) 设置代理
      • 格式: 协议://地址:端口
      • 示例: socks5://127.0.0.1:1080
  • 机器人参数
    • -botDataDir / ENV: CGJ_BOT_DATA_DIR: (可选) 设置botMode运行模式下机器人数据存储目录
      • 格式: 路径
      • 示例: ./data
      • 默认: ./
    • -redisAddress / ENV: CGJ_REDIS_URI: (必填, 计划支持可选) Redis服务器地址
      • 格式: 地址:端口
      • 示例: 127.0.0.1:6379

例如以BotMode启动应用: java -jar CGJ.jar botMode -proxy "socks5://127.0.0.1:1080 -redisAddress 127.0.0.1:6379

Commands

  • pluginMode: CoolQ插件模式(依赖酷Q机器人, 支持与CoolQ其他插件共存, 性能耗损大)
  • botMode: Mirai独立模式(机器人独立运行, 不支持与其他插件共存, 性能耗损小)
  • collectionDownload: 收藏下载, 以原图画质下载Cookie所属账号的所有收藏作品
  • getRecommends: 将访问主页获得的推荐作品全部以原图画质下载
  • getRankingIllust: 以原图画质下载指定排行榜类型的全部作品
  • search: 搜索指定内容并获取相关作品信息(不下载)

注意: 除去机器人模式外, 其他功能后续可能会出现改动.

LICENSE

本项目基于 GNU Affero General Public License 3.0 开源许可协议开源,
你可以在本项目目录下的 LICENSE 文件查阅协议副本,
或浏览 https://www.gnu.org/licenses/agpl-3.0.html 查阅协议副本。

    ContentGrabbingJi - A pixiv robot used in chat
    Copyright (C) 2020  LamGC (lam827@lamgc.net)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.

尤其注意:根据协议,如果你基于本项目开发本项目的衍生版本并通过网络为他人提供服务,则必须遵守该协议,向 服务的使用者 提供 为其服务的衍生版本完整源代码