GithubHelp home page GithubHelp logo

auto_attendance's Introduction

自己测试版本

中南大学nCov健康打卡定时自动脚本(Github-Actions版)

注意:本master分支版本代码使用Github-Actions定时运行,无需部署在服务器。如需在服务器中运行,请使用service分支中的代码.

Description

特此声明:项目用于学习交流,仅用于各项无异常时打卡,如有身体不适等情况还请自行如实打卡!

  • 可定时,默认为每天7点5分
  • 默认每次提交上次所提交的内容(只有时间部分更新)

Usage

获取Cookie

获取eai-sess和UUkey

  1. 打开浏览器,按F12调出控制台

  2. 打开Network选项,勾选Preserve log

  3. 打开健康打卡页面https://wxxy.csu.edu.cn/ncov/wap/default/index

  4. 若跳转至此页面,输入学工号与门户密码进行登录

  5. 在左侧找到info并点开,在右侧找到Request Headers,将Cookie中的eai-sess和UUkey记录下来

如果以上方法未能找到info页面和Cookie中的eai-sess和UUke,请尝试按下图方法搜索:

  1. 打开Network选项,勾选Preserve log

  2. 点击放大镜处的搜索按钮

  3. 搜索eai-sess

  4. 搜索UUkey

运行方式

  1. fork本项目到你的个人账号

  2. 设置Secrets

    从Github中进入刚刚fork到你的个人账号下的本项目,打开项目的Settings->Secrets页面

​ 点击New Secret按钮新建四个密码:

  • USERNAME:你的中南大学学工号

  • PASSWORD:你的中南大学信息门户密码

  • EAI_SESS:你的eai-sess cookie

  • UUKEY:你的UUkey cookie

  1. 启动定时打卡

    进入Code页面,点击修改按钮

    在readme文件中随意修改任意字符(比如加个空格),然后点击下方的Commit Changes即可激活每日定时打卡脚本

  2. 查看运行情况

    打开Actions页面,此时在workflows中应该出现了正在运行的工作流。当提交文件时会马上进行一次打卡,以后将会默认在每天的7:05进行打卡

修改打卡时间

打开项目中的/.github/workflows/python-package.yml文件,修改corn中的值,注意使用UTC零区时间。

例如,当前默认打卡时间是北京时间(UTC+8)每天7:05,换算成UTC零区时间为23:05。

更多关于时间的具体书写格式请参考POSIX cron 语法官方文档


如本项目对您有所帮助,请帮忙点一个⭐star支持一下作者。如有任何问题欢迎提交issue与我联系。

参考开源仓库:

  1. 浙大nCov健康打卡定时自动脚本
  2. 北京化工大学COVID-19自动填报脚本

auto_attendance's People

Contributors

lxysl avatar hanyuancheung avatar wuyinwuxian avatar

Watchers

 avatar

auto_attendance's Issues

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.