1 Star 0 Fork 0

李志伟 / auto_sign_zzu_jksb

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

郑州大学健康状况上报平台自动打卡脚本

该脚本仅用于自动打卡郑州大学健康状况上报平台。

具体的说明介绍放在了我的博客中。

所需依赖

python==3.7
selenium
浏览器对应的驱动,如ChromeDriver

设置

需要用户自行新建private_info.py文件,并在里面设置如下参数:

UID = "学号"
PWD = "平台密码"

MAIL_USER = "通知邮箱"
MAIL_PWD = "通知邮箱授权码"
MAIL_TO = "接受通知的邮箱"

如果想要做成多账户的,需要通过User(uid, pwd, email)来定义并添加到users数组中

运行

python auto_sign.py

现在,程序本身已经支持定时了!

通过修改auto_sign.py中第72行代码中==后的数字就可以自定义时间了:

if now.hour == 6 and now.minute == 0:

代价就是程序必须一直运行着

作为补偿,我将编码修改为了GBK,这样可以运行在Linux服务器后台上了,通过以下命令即可:

nohup python auto_sign.py &

Repository Comments ( 0 )

Sign in to post a comment

About

郑州大学健康状况上报平台自动打卡脚本 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Python
1
https://gitee.com/incentnacy/auto_sign_zzu_jksb.git
git@gitee.com:incentnacy/auto_sign_zzu_jksb.git
incentnacy
auto_sign_zzu_jksb
auto_sign_zzu_jksb
master

Search

101014 b92fc32e 1850385 101014 af024cb7 1850385