GithubHelp home page GithubHelp logo

autoreport's Introduction

南七技校自动健康打卡报备脚本

School Language GitHub stars GitHub forks

说明

本打卡脚本仅供学习交流使用,请勿过分依赖。开发者对使用或不使用本脚本造成的问题不负任何责任,不对脚本执行效果做出任何担保,原则上不提供任何形式的技术支持。

使用方法

.\data文件下放置***图片,命名为journey.jpg

设置定时计划运行下面代码(可以改一下脚本路径,和python解释器路径)

python AutoReportNo.py --username [SA...] --password [密码]

自动每隔一段时间运行,使用下面代码(可以改一下脚本路径,和python解释器路径)

python AutoReport.py --username [SA...] --password [密码]

运行环境

  • 直接安装依赖
pip install -r requirements.txt
  • python
  • 安装包
pip install requests
pip install argparse
pip install ast
pip install datetime
pip install pytz
pip install bs4
pip install re
pip install getpass

可以更改autoreport.py中的

    everyhours = 5 # hours 每多少小时进行打卡
    waittime = 10 # seconds 等待多长时间

调整每多长时间打一次卡,输出参数每多久更新一次

Windows

  • 输入用户名密码运行

CMD切换到当前目录下,运行

python autoreport.py

然后输入用户名密码即可

如果想桌面生成图标运行,双击runit.vbs,就会在桌面生成运行图标,下次双击即可运行

图标

  • 带参数运行
python autoreport.py --username [SA...] --password [密码]

Linux

cd切换到当前代码目录下,运行

python autoreport.py

然后输入用户名密码即可

  • 带参数运行
python autoreport.py --username [SA...] --password [密码]

无需输入账号密码

请使用 AutoreportNo.py,修改里面的用户名和密码,可以加入每日计划中,定时打卡

data.json 数据获取方法

登陆打卡地址

使用 F12 开发者工具抓包之后得到数据,按照 json 格式写入 data.json 中

  • 登录进入 登陆打卡地址,打开开发者工具(Chrome 可以使用 F12 快捷键),选中 Network 窗口:

  • 点击确认上报,点击抓到的 daliy_report 请求,在 Payload 下面找到 Form Data 这就是每次上报提交的信息参数

autoreport's People

Contributors

ambrosex avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zhehaoli1999

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.