Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (29 loc) · 914 Bytes

parser.md

File metadata and controls

37 lines (29 loc) · 914 Bytes

KAI website schedule parser

Usage

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