Coder Social home page Coder Social logo

auto-sign-tool's Introduction

auto-sign-tool

一款基于 Spring Boot 的 自动登录/签到 小工具。欢迎大佬们来进行优化或集成更多的签到服务。

功能

  1. 支持 黑客派社区 自动签到功能。

使用方法

该工具当前提供 .bat 批处理、.sh shell 脚本的方式来启动。启动项目前请 修改参数配置

Windows

使用 maven 打包项目后,将打包后的 auto-sign-tool.jar 放置在项目根目录下,双击 bin 目录下的 sign.bat 即可。

Linux

将打包后生成的 auto-sign-tool.zip 解压,执行 bin/sign.sh 文件:

  1. ./sign.sh start 启动
  2. ./sign.sh stop 停止
  3. ./sign.sh restart 重启
  4. ./sign.sh status 查看状态

版本介绍

v1.0.0

  1. 以配置文件的方式,配置相关参数,如:
auto:
  servers:
    ## 黑客派社区服务
    hacpai:
      # 签到地址
      url: https://hacpai.com/activity/checkin
      login-url: https://hacpai.com/api/v2/login
      logout-url: https://hacpai.com/api/v2/logout
      # 登录参数
      login-params:
        userName: test
        userPassword: test
        captcha:
      # 自定义 User-Agent, 部分服务不允许使用默认的 User-Agent
      ua: Auto-Sign/1.0.0
      # cookie 名称
      cookie-name: symphony
      # 定时任务 cron 表达式
      cron: 0 1 0 ? * *
      # response 参数字段,用于解析请求响应
      response:
        code: sc
        message: msg
        token: token
        success: 0
  1. 提供了公共的模板抽象类 AbstractCheckinService,如需添加其它的自动签到功能,只需继承该类并实现抽象方法即可。具体实现可看源码。

v1.0.1

  1. 将 mysql 数据库修改为 h2 内嵌式数据库。
  2. 项目启动成功后,访问 http://ip:host/h2-console 即可进入 h2 web console 页面,查询相关数据。
  3. 修改 ./sign.sh 启动文件最小启动内存配置,修复启动时报启动内存不足问题。

鸣谢

  1. 感谢 黑客派 提供的开放接口 API。

auto-sign-tool's People

Contributors

nekochips avatar

Stargazers

 avatar

Watchers

 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.