Giter VIP home page Giter VIP logo

nju_health_report's Introduction

NJU健康打卡助手

为了解决XX教育的高新技术APP运行速度太快的问题,受大佬启发,因为懒得装webdriver自己瞎写的健康打卡助手。

运行环境

  • python3
  • python modules:requests、Js2Py、beautifulsoup4、lxml(lxml可换成其他包,具体代码中有指出)

使用方法

  1. 运行pip install -r requirements.txt,自动安装需要的modules(或者自行手动安装)
  2. 修改Health_report.pyUserNameUserPassUserLocationUserLastPCR四个变量为对应值。
  3. 运行程序。

关于Health_report_wrapper.py

这个脚本和上一个的区别就是加了个main函数,从输入参数中获取变量的值,用法:

$ python Health_report_wrapper.py <UserName> <UserPass> <UserLocation> <UserLastPCR>

UserLastPCR这个参数由于带有空格,需要使用\转义,比如2022-4-11 14应该写成2022-4-11\ 14

之所以包了一层,是因为本身这个项目想做成iOS捷径(我的老SE在打卡界面定位巨慢),如果不用天天改打卡位置的话其实没必要用这个。

注意事项

如果密码错误,统一认证可能会要求输入验证码,这个程序不能处理验证码,所以千万别输错。
如果输错了导致需要验证码,可以手动打开浏览器登陆一下统一认证,一般可以解决。

鸣谢

感谢@StellarDragon大佬提供的灵感:nju-health-report

nju_health_report's People

Contributors

minaduki-shigure avatar

Stargazers

H GENG avatar  avatar

Watchers

James Cloos avatar  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.