Code Monkey home page Code Monkey logo

uestc_report_playwright's Introduction

UESTC 自动健康打卡

电子科技大学研究生每日自动健康打卡。

前言

1、本项目将在每天早上10点半左右通过信息门户账号登陆健康打卡系统 进行健康打卡。

2、本项目打卡所提交的内容(比如是否留校,是否隔离等)取决于你昨天的打卡内容,如果有变化请及时手动更新自己的状态。

3、本项目创立的初衷在于技术交流、相互学习,而并非为学生提供打卡服务。因此,该项目不对提供的服务质量作出保障。

4、如果您决定使用该项目所提供的服务,那么其带来的一切后果,均将由您个人承担,与原作者、贡献者无关。

Action使用教程

1、点击右上角Fork本项目。

2、进入到Fork后的项目,点击Action,开启workflow。

3、依次点击Setting-Secrets-Actions。

点击右上角New repository secret;在name下输入username,在value下输入你的学号;保存。

点击右上角New repository secret;在name下输入password,在value下输入你的密码;保存。

4、至此部署完成,每天早上将会自动打卡,如果你没有禁用 GitHub 的邮件通知,打卡失败将收到邮件提醒。

5、如果你想关闭自动打卡,点击Action-DailyReport,再点击右上角三个小圆点,在下拉栏里点击Disable workflow。

本地使用教程

要求Python版本 > 3.7,需要自己设置每日定时任务

下载本项目

git clone https://github.com/xiong233/uestc_report_playwright

cd uestc_report_playwright

安装环境

pip install -r requirements.txt

playwright install-deps firefox

运行打卡项目

python main.py 201***** mypassword

其他

1、Github服务器有时候会打不开学校的打卡网站(早上居然进不去电脑端的打卡网站),因此本项目将会在第一次打卡失败后再尝试一次,但只要第一次打卡失败你就会收到邮件提醒。

2、本项目的滑动验证识别部分用的onion-rain/uestc_health_report 的代码。

3、Selenium会被判定为爬虫,之前先用Pyppeter做了一个打卡项目 但是有一些不太好的地方,用了一段时间目前已经失效

a,各种坑还搜不到解决方案; b,必须使用有头模式,无头模式也会判定爬虫; c,action每次打卡都要传输chrome压缩包。

所以用Playwright 实现本项目,能跑无头模式,语法跟Pyppeter差不多

好像也有一些坑,有时候打不开网站,感觉本项目离失效也不远了。。。

uestc_report_playwright's People

Contributors

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