I applied to be a adjunct professor. They don't email you when there is a application status change. So let's automate checking for status changes!
This program will login to the university website and check the application status. If there was an application status change it will print status change and open a screenshot of the webpage.
Here is what the automation does when you run this byui command line tool:
- Login to https://employment.byui.net/login using your username and password (make sure to update the main.go with your username and password)
- Navigates to https://employment.byui.net/job_applications
- Takes a screenshot of the webpage
- Checks if the
.byuifolder in the users home directory exists, if not creates it. - Checks if
appstatus.pngexists. If so rename it toold_appstatus.png - Saves the screenshot from #3 as
appstatus.png - Uses
idiffto check if there is a difference between the images:appstatus.pngandold_appstatus.png- If so then print to the console there is a status change and open
appstatus.pngusingxdg-open - If not then print to the console no status change
- If so then print to the console there is a status change and open
sudo apt-get install -y openimageio-tools
sudo apt-get install -y install xdg-utils
> byui
Status change! Openining screenshot of application status...
> byui
No status change