As the semester goes on professors leave the attendance open for people to check in as they tune into the class but don't often remind students. This makes sure you don't forget.
It's required that you fill out a json file for the class you want to check in automatically for. I did not add support for multiple classes yet but I plan on on doing so when I make sure that this works first.
{
"username": "", //tuh sign-in goes here
"password": "", //password goes here
"class": "", //the url to your class goes here(ex. https://templeu.instructure.com/courses/84394)
"webdriver": "", //Chrome web driver for the app to pilot a browser https://chromedriver.chromium.org/downloads
"userProfile": " " //If you have 2FA you'll need your personal chrome browser's profile path
}
Make sure to use pyinstaller for your respective OS and to install selenium, it's the only library you'll need to install. Also make sure that the config file is in the same directory as the program.
a b c d e /directory/command output
- The first five fields a (min) b (hour) c (day) d (month) e (day of the week) specify the time/date and recurrence of the job.
- In the second section, the /directory/command specifies the location and script you want to run.
- The final segment output is optional. It defines how the system notifies the user of the job completion.
Example of running a script every 10 minutes
*/10 * * * * /usr/bin/python script.py
MacOS has a scheduler similar to Windows called Automator that pairs up with iCal