登录和确保南大校园网一直在线的小工具,适合假期跑路的时候开启。
两种模式:
- 单次登录模式:登录一次,如果登录失败,将会以指定的时间间隔重复指定次数。
- 保持在线模式:程序每隔一段时间检查是否在线,不在线就会尝试登录,连续尝试指定次数后如果还是不成功,就会等一段时间再尝试登录。
- Python 3
-
第一步:修改config.py中的账号密码字段,其他设置根据你自己的需要修改。
-
第二步:使用下面命令运行程序。
单次登录模式
python main.py login
保持在线模式
python main.py keep_login