AttendanceTaker 

Preview of the AttendanceTaker project

  Library

A selenium-based automation tool to help take attendance in Moodle-based platforms.

Tech stack

python

selenium

Usage

An example is provided at example.py. We first need the base URL of the platform, such as "https://avalid.moodleplatform.com.uk". We then instantiate the AttendanceTaker by doing:

AT = AttendanceTaker(base_url_here)

We then load up our credentials from credentials.json and login:

AT.load_credentials(json_file)
AT.login()

To take attendance, we go to the course and search the attendance links:

AT.navigateToCourseById(1111)
AT.takeAttendance()

And we're done! It is recommended to clean up afterwards:

AT.logout()
AT.exit()

You can debug the driver's current page with

AT.currentPage()

TODO:

  • [ ] Tests
  • [ ] Setup CRON jobs
  • [ ] GUI for non technical users