Git Product home page Git Product logo

autodaka's Introduction

ZJU-AutoDaka

AUR

image

简介

利用github action 实现自动健康打卡, 针对验证码版本开发,适用于最新版的打卡系统

写在前面

钉钉机器人推送代码来自Dimlitter同学

使用方法

  1. 直接 Fork 本仓库

  2. 配置帐号

  • (必须)Settings > Secrets > Actions > New repository secret, 添加 account,内容为浙大通行证账号(学号),添加password,内容为浙大通行证密码。
account:通行证账号
 
password:通行证密码
  • (可选)Settings > Secrets > Actions > New repository secret, 添加 DD_BOT_TOKEN,内容为钉钉自定义机器人的token,添加DD_BOT_SECRET,内容为机器人的签名。
DD_BOT_TOKEN: 钉钉自定义机器人的token,只需 https://oapi.dingtalk.com/robot/send?access_token=XXX 等于=符号后面的XXX即可

DD_BOT_SECRET :钉钉机器人的加签密钥

image

  1. 配置定时运行时间(可选)

    在 .github/workflows/main.yml 中更改时间:

    on:
    workflow_dispatch:
    schedule:
       - cron: '0 */12 * * *'
  • 注意,github是UTC时间,北京时间是UTC时间加8小时
  1. 配置钉钉消息通知(可选)

    • 手机版钉钉 > 右上角添加 > 面对面建群 > 创建之后得到只有你一个人的群聊
    • 电脑版钉钉 > 群设置 > 智能群助手 > 添加机器人 > 自定义,名字随便填

    !!!注意: 机器人类型是自定义,不是github,敲黑板!

    • 获取上述的token和secret
    image

验证码识别

验证码识别平台为https://www.chaojiying.com/

请自行前往注册一个账号,再生成一个软件ID

image

复制“账号”、“密码”、“软件ID” 替换daka.py中的红圈内参数

image

注意事项

注意:请仓库检查开启了github action功能,如果没有,请在当前项目的Settings>Actions>General下"allow all actions and reusable workflows"和点击Actions > schedule下启用workflows。(没有开启的页面有文字提示开启)

当action运行时,可以在项目的Actions选项下看到AutoDaka这个工作流的运行记录

  • 如果想立即运行action,只需要star一下自己的项目即可触发。

声明

本项目为Python学习交流的开源非营利项目,仅作为学习交流之用。

autodaka's People

Contributors

friedrich-m avatar karen-xd 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.