- The login page can be accessed by
http://192.168.249.1:1000/login?
- The source code (HTML file) has a form with hidden inputs along with inputs for
username
andpassword
- The hidden inputs are:
magic
- a dynamically generated token4Tredir
- its the login url, it is staticPOST
request
- The scrapping cant not be done using
bs4
in python cause the magic token is being generated dynamically with the help Javascript, thats why we need to use selenium along with webDriver - Using of selenium requires webDriver to be installed, which can be a hassle to install, and there is also multiple Browser issue, that is why it will be better to achieve the auto login with the help of
Go
along with scraping package colly - The challenge is to make it automatic.
- Detect if connected to college network
- Detect if connected to internet
- Run app if connected to college network but not to internet
- Check of login failure or success
- Handling of credentials with flags or some better method
- Making it run automatically
- Making it startup after boot up