At IIT Mandi, we have a LMS (Learning Management System). One of the main problem of this site (or mobile app) is that it does not sends notification properly whenever new upload or announcement is made in the course. To tackle this problem, I've built this python script that sends notification whenever something is uploaded in the LMS.
I have used plain python for this project along with the following libraries/modules :
requests
- To performGET
andPOST
requests to the LMS Website.bs4 (BeautifulSoup)
- To scrape the webpages.pwinput
- To hide the password with asterisks(*
) in the terminal.plyer
- To send notifications
The script checks the site every one hour (provided that the script is kept running by the user) .
- Make sure you have python installed in your system (Don't use online compilers).
- Download the repository as
zip
. - Extract the
zip
wherever you want. - Open
terminal
and navigate to the required folder. - Type
python main.py
then hit enter, and the work is done. - This will consume negligible amount of CPU, memory and disk (you can see the same in task manager if you don't believe) so you can keep it running in the background and do your work.
- Will NOT give notifications instantly (You can manually change the code to constantly check the site in lesser intervals, but don't make it too small otherwise your IP Address may get blocked for too many requests).
- Can happen that you may get logged out after a certain duration of inactivity (can't do anything about it, that's how the website works).