Coder Social home page Coder Social logo

nju-sth-bad's Introduction

NJU-health-report-Sth-Bad

南京大学每日健康填报自动打卡脚本。

说明

  • 本项目仅供学习交流使用。开发者对项目造成产生的后果不负任何责任,也不保证本方案一直有效。请使用者对自己负责。
  • 使用前须将项目 Fork 至自己的仓库,此时密钥只有自己才知道,可以保证信息的安全,请放心使用。
  • 由于统一验证要求强制验证码,现在脚本会自动调用 OCR 库来识别验证码,并重复登录 3 次。
  • 使用者必须对本项目自动化提交的信息负责,如果不信任或是有数据真实性的需求,请自行手动打卡。

更新

  • 2022-4-22 原作者已润,脱离fork,闷声大发财。
  • 2022-4-21 更新以确保能继续使用,并且优化了代码使其更好维护。
  • 2022-4-17 更新了基于 ddddocr 库的验证码自动识别。
  • 2022-4-10 更新了近日离宁和核酸时间的支持。
  • 2021-10-19 之前使用的方案实测已经无法正常使用,目前已回退旧方案。已 fork 的用户请更新后使用。

使用方法

  1. 将本项目 Fork 到自己的仓库。
  2. 打开自己 Fork 之后的仓库,因为没有填写账户信息,此时若触发打卡,一定会失败。
  3. 进入 Settings 选项,点击 Secret,并选择 New Repository Secret。依次添加以下变量:
    • USERNAME: 学号
    • PASSWORD: 南京大学统一认证的密码
    • LOCATION: 你希望打卡的地理位置。比如南京大学仙林校区可以填 **江苏省南京市栖霞区九乡河东路
  4. 回到 Action 选项卡,重新运行 Action,或者静待自动打卡。
  5. 项目默认是在 13:00.UTC每天三个时间点自动打卡,可以根据需要修改 .github/workflows/report.ymlcron 项。
  6. 建议设置 GitHub Actions 通知为 Send notifications for failed workflows only 以接收构建失败的通知。这通常是默认设置项。 当 Action 启动之后,可以通过进入 Summary 来查看具体的记录。 若构建失败,请遵循 Log 中的提示进行相应操作。

每次打卡

  1. 设置【您的体温是否正常】为【正常】
  2. 设置【您的其他健康情况】为【正常】
  3. 设置【您今日苏康码显示颜色】为【绿色】
  4. 设置【您的共同居住人今日苏康码显示颜色】为【绿色】
  5. 设置【最近14天是否离宁】为【否】
  6. 设置【您的最近一次核酸检测时间】默认为常态化核酸检测时间。
  7. 设置【填报地址】为 location 项。

待办

  • 自动识别验证码
  • 增加更多的最近核酸检测时间方案
  • 增加 DISABLE 项,以支持在保留项目的同时暂停自动打卡。
  • 增加手动输入验证码的本地测试方案
  • 增加长效 cookie 的本地部署方案

nju-sth-bad's People

Contributors

kottory avatar sakiyary avatar psn417 avatar chenyucheng0503 avatar lyc8503 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.