Python program which automatically submit attendances to moodle using requests and BeautifulSoup.
Make sure you have installed all of the following prerequisites on your machine:
After installing Python install html5lib5, requests and bs4 packages using pip:
$ pip3 install requests bs4 html5lib
There are two ways to download the code:
The recommended way to get thecode is to use git to directly clone the moodle-attendance repository:
$ git clone https://github.com/athulreji/moodle-attedance.git
This will clone the latest version of the repository to a moodle-attendance folder.
Another way is to download a zip copy of the repository from the main branch on GitHub.
Edit the login_values.py file by filling the login details and the domain address like given below:
username = 'user05@gmail.com'
password = 'pass234'
domain = 'moodle.example.com'
Run the script using python:
$ python3 ./moodle-attendance.py