Coder Social home page Coder Social logo

nju-hr's Introduction

NJU-HR

🌀 简介

NJU-HR 可以帮您自动进行每日健康打卡.

❗ 协议

使用 NJU-HR 即表明,您知情并同意:

  • 本项目仅供学习交流使用. 代码通过模拟浏览器使用 Cookie 登录. 开发者对项目造成产生的后果不负任何责任, 也不保证本方案一直有效. 请使用者对自己负责.
  • 使用前须将项目 Fork 至自己的仓库, 此时 Secret 只有自己才知道.
  • 用户的 Cookie 被储存于 Github 服务器, 只供本项目使用. 若 Github 服务器被攻破, 则您的 Cookie 有遭到泄露的风险. 除此之外, 开发者无权获取您的 Cookie; 即使是用户, 一旦创建完成Secrets, 也无法再次从中查看 Cookie.

📐 部署

  1. 将本项目 Fork 到自己的仓库.
  2. 进入 Settings 选项, 点击 Secret, 并选择 New Repository Secret. 依次添加以下变量:
    • USERNAME: 学号.
    • LOCATION: 你希望打卡的地理位置。比如南京大学仙林校区可以填 **江苏省南京市栖霞区九乡河东路.
    • COOKIE: 使用电脑端 Chrome/Edge 打开该网址, 成功登录后重新启动该网页, 按 F12 进入开发者模式, 选择 网络, 刷新页面, 点击抓取到的 default.html, 查看标头中 Cookie: 部分, 将 CASTGC= 之后的代码复制进该变量. 上述方法仅可生效一天,若想长期生效,需用 安卓手机+抓包软件 (如Release中的 HttpCanary 软件) 抓取 南京大学APP - 每日健康打卡 的登录界面, 获得长效 COOKIE. 样例为 "TGT-xxxx-xxxx-xxxx-cas". 注意: 该 COOKIE 会在 重新登录/清除缓存 后失效, 建议使用安卓系统的清除应用数据重置南京大学APP后正常使用.
    • USERAGENT: 使用手机端 Chrome/Edge 浏览器, 输入网址 about:version (注意为半角冒号), 查看用户代理/User-Agent: 部分, 在末尾加上 "cpdaily/9.0.15", 并复制进该变量. 样例为 "Mozilla/5.0 (Linux; Android xx; xxxx) AppleWebkit/xxxx(xxxx) Chrome/xxxx Mobile Safari/xxxx cpdaily/9.0.15".
  3. 回到 Action 选项卡, 重新运行 Action,或者静待自动打卡.

🔍 结果

  1. 设置您的体温是否正常正常.
  2. 设置您的其他健康情况正常.
  3. 设置当前的新冠状况一直阴性未阳过.
  4. 设置您今日苏康码显示颜色绿色(已失效).
  5. 设置您的共同居住人今日苏康码显示颜色绿色(已失效).
  6. 设置最近14天是否离宁(已失效).
  7. 设置您的最近一次核酸检测时间某一天(已失效).
  8. 设置填报地址LOCATION 项.

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.