ngalioth / USTC-Auto-Health-Report

基于Python requests库的中科大健康打卡脚本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USTC-Auto-Health-Report

GitHub Python

中科大健康打卡脚本

  • 统一身份认证登录

    • 验证码绕过
    • 验证码识别(能绕过为什么要识别?)
  • 健康打卡

  • 进出校报备

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

环境

python==3.6

见requirements.txt

使用方法

每日打卡

手动打卡并抓包,将除_token外的其他内容以JSON格式放置于post.json文件中(或直接按示例修改此文件),即可结合各类定时程序,调用脚本进行打卡。

示例见post.json。

每天调用一次。

进出校报备

手动打卡并抓包,将除_token、时间外的其他内容以JSON格式放置于report.json文件中(或直接按示例修改此文件),即可结合各类定时程序,调用脚本进行报备。

每天调用一次,不需要经过老师审核。

调用示例:

from ustc_auto_report import USTCAutoHealthReport

bot = USTCAutoHealthReport()
# 登录
bot.login('SAxxxxxxxx', 'password')
# 打卡
bot.daily_clock_in('post.json')
# 进出校报备
bot.report('report.json')

About

基于Python requests库的中科大健康打卡脚本

License:MIT License


Languages

Language:Python 100.0%