This parser will allow you to get the entire schedule through the kai website, getting information about all classrooms and teachers. You must be sure you are using the database as in the project.
Run parser from docker-compose
docker compose run parser bash
Group table update
python3 parser.py -g -c [Path/To/Your/SQLite.db]
Update all training sessions
python3 parser.py -l -c [Path/To/Your/SQLite.db]
Truncate all training sessions
python3 parser.py -d -c [Path/To/Your/SQLite.db]
With verbose logging
python3 parser.py -g -v -c [Path/To/Your/SQLite.db]
All-in-one
You can also update the groups and the entire schedule by specifying the list of arguments, as in the example.
python3 parser.py -g -l -v