All Projects → Tishacy → Zju Ncov Hitcarder

Tishacy / Zju Ncov Hitcarder

Licence: mit
浙大nCov健康打卡定时自动脚本 [请勿滥用]

Programming Languages

python
139335 projects - #7 most used programming language

ZJU-nCov-Hitcarder

浙大nCov肺炎健康打卡定时自动脚本

  • 可定时,默认为每天6点5分
  • 默认每次提交上次所提交的内容(只有时间部分更新)
  • 系统表单如有更新,在当天自行手机打卡,后面会自动按照你更新后的选项继续打卡

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

感谢conv1d同学,已使用requests直接登录浙大统一认证平台,不再依赖phantomjs

Usage

  1. clone本项目(为了加快clone速度,可以指定clone深度--depth 1,只克隆最近一次commit),并cd到本目录

    $ git clone https://github.com/Tishacy/ZJU-nCov-Hitcarder.git --depth 1
    $ cd ZJU-nCov-Hitcarder
    
  2. 安装依赖

    $ pip3 install -r requirements.txt
    
  3. 将config.json.templ模板文件重命名为config.json文件,并修改 config.json中的配置

    {
        "username": "你的浙大统一认证平台用户名",
        "password": "你的浙大统一认证平台密码",
        "schedule": {
            "hour": "6",    // 6点
            "minute": "5"   // 5分 
        }
    }
    
  4. 启动定时自动打卡脚本

    $ python3 daka.py
    

Tips

  • 为了防止电脑休眠或关机时程序不运行,推荐把这个部署到VPS上
  • 测试程序是否正常运行:可以先把定的时间放在最近的一个时间(比如下一分钟)看下到时间是否可以正常打卡
  • 想指定自己打卡地理位置的童鞋可以参考8#issue

Thanks

感谢贡献者

LICENSE

Copyright (c) 2020 tishacy.

Licensed under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].