Automatically books lectures for UniFi's "Agenda Web" and a list of studyrooms
To run this on your local machine do the following steps:
- Clone this repo
- Copy
credentials.example.py
, rename it tocredentials.py
and set your matricola and password. - Run
py -m pip install -r requirements.txt
to install the required python libraries - Run the entire program with
py local_main.py
or only for booking lectures typepy book_only_lectures.py
The scripts are fully compatible with any *nix os, you only have to adjust the webdriver so that it points to a correct binary executable for your system.
You can also run this script automatically on Heroku. Just follow the steps:
-
Create a new app
-
Deploy this repo to Heroku via the preferred method (Heroku Git, Github, etc.)
-
Add the following Buildpacks:
heroku/python
https://github.com/heroku/heroku-buildpack-google-chrome
https://github.com/heroku/heroku-buildpack-chromedriver
-
Set the following Config Vars:
PASSWORD
= your passwordUSERNAME
= your matricola
-
Finally setup Heroku Scheduler to have it run automatically:
- Choose the daily interval with a time of your choosing (e.g. Every day at... 9:30 AM)
- Set it to run the following command:
python main.py