Giter VIP home page Giter VIP logo

zju-ncov-hitcarder's Introduction

ZJU-nCov-Hitcarder

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

  • 可定时,默认为每天6点5分
  • 默认每次提交上次所提交的内容(只有时间部分更新)
  • 更新表单杭州健康码部分,默认已领取绿卡,如更改选项,见daka.py中第84行注释
  • 已更新表单至4月18日状态

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

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

增加了各操作系统的phantomjs和自动选driver的功能,结果导致库变得较大,如果想自行下载对应版本的phantomjs,可以切换到neat分支(只保留了windows系统的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

zju-ncov-hitcarder's People

Contributors

tishacy 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.