Skip to content

bkklee/ResNet-Login-Bot

 
 

Repository files navigation

CUHK ResNet Login Bot

Introuduction

This python script provides a simple login procedure to login the CUHK ResNet portal. The login daemon can check the connection status and login the Resnet portal with your account automatically.

Usage

For one time login.

First, modify your username and password on login_config.py

Then, use resnet_login.py to login

python3 resnet_login.py

Windows user

[Prerequisite] You need to have Python installed, and added to PATH variable in Windows.

First, modify your username and password on login_config.py.

Then, use windows.bat to login.

windows.bat

Installation

For keeping the network alive.

You can install a systemd daemon named resnet_login.service to your system. The daemon will check the login status for every 30 min by default. You can change the checking frequency on login_freq=30 on login_config.py

./install.sh

Windows user

For keeping the network alive.

Add windows.bat to the Task Scheduler. Adjust the setting such that windows.bat is ran within every 12 hours to ensure the network keep alive.

Uninstall the Bot

To uninstall the login bot, simply run the uninstall script.

./uninstall.sh

Windows user

Remove the task in the Task Scheduler.

Troubleshooting

1. No module named request

Please install the requests module with pip

sudo pip3 install requests

2. No User name pi

Please modify the user account name to something in resnet_login.service on Line 7

[Service]
User=<Your_Username>

Reference

https://github.com/SaneBow/ResNetAutoLogin

About

Easy Login bot for cuhk resnet

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 77.7%
  • Shell 21.2%
  • Batchfile 1.1%