automatically sign in the network portal in SUSTech. Designed for lakeside??? students
It's annoyed to be disconnected and have to try a thousand times for the cas login page to show itself.....
Developed by python3, "requests", "bs4" and "pyyaml" are required.
If you are a pip user, you can simply install all the requirements by following command.
pip install -r requirements.txt
- Copy or rename [config.yaml.example] to [config.yaml]
- Replace the balabalas by your network account fields.
- At root, run
python3 index.py
to start the main process and keep you online.
If you want to deploy it as a system service, you can follow this
- Simply copy [keeponline.service] to /etc/systemd/system
- Modify keeponline.service, correct WorkingDirectory, ExecStart, User filed.
- Run
sudo systemctl enable keeponline
- Run
sudo systemctl start keeponline