IK PAS HET LATER AAN MAAR VOOR NU IS DEZE README OUTDATED
Zermelo Utils is a project of mine with utils for the zermelo api.
You are able to get a database of all students at your school, if your school uses zermelo and your permissions are set the same as mine. This is because I am enrolled in only 1 school and don't know how permissions are managed at other schools.
The configured fields are all field I have permissions for to get at my school. I will add a way later to customise it.
This tool may be seen as a stalker tool, this is not my intention, it's intention is for me to learn python and just expiriment.
Install the needed packages using pip install -r requirements.txt
.
First make a Dotenv file as specified below, after that run python ZermeloImport.py
, this will get the required data from zermelo,
check the downloaded data in message.json
and leerlingen.json
, if the data is correct, proceed, if it is incorrect
you either did something wrong or your Zermelo is set up differently.
Now we have made sure the data is correct, run python SaveToDatabase.py
to make a database file with all student data.
You can now view the data using SQLiteStudio, pycharm, a vscode extension or something else.
You can make some cool graphs with the Graph.py
(expiriment yourself).
Place a .env file in the root directory of the project containing this:
SCHOOL=YourSchoolName
SCHOOLYEAR=schoolInSchoolYear
AUTHORIZATION=Bearer YourApiToken
SCHOOL
, the school name, you can find this by going to your zportal and look at the domain:
(I edited the image, so this is not actually how long my url is)
Copy the text under the black (Without the slashes at the left) and replaceYourSchoolName
with itSCHOOLYEAR
, a value internally used by zermelo, this will later be replaced, but in the mean time go to zportal and look in devtools at some requests, look for one that contains the following:
Copy the integer under the red spot and replaceschoolInSchoolYear
with it.AUTHORIZATION
, your api token (this will become invalid in less than 1 day) find it the same way as the last one, but instead look at the request headers forAuthorization
After using the program in the right way your file structure should look something like this:
.
├── .git/
│ └── .
├── Images/
│ └── .
├── .env
├── .gitignore
├── Graph.py
├── leerlingen.db
├── leerlingen.json
├── message.json
├── README.md
├── requirements.txt
├── SaveToDatabase.py
└── ZermeloImport.py