Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 2.08 KB

readme.md

File metadata and controls

56 lines (47 loc) · 2.08 KB

Qwickly Auto Attendance Script

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.

Config.json

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.
JSON Format
{
"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
}

Usage

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.

Windows
After creating an executable with pyinstaller you can use Window's built in task scheduler to run this script when you have classes
Linux
Use the cron command to schedule tasks
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

MacOS has a scheduler similar to Windows called Automator that pairs up with iCal

Limitations

Check-ins that require pins cannot be automated