Eine verbesserte Version vom Vertretungsplan auf der Website kephiso.Webuntis
Anfängerprojekt! Teile des Codes sind KI generiert.
Free to Download und Free to use
if you want to use this one on another school than bbs friesoythe, you need to do some things first.
-
Open the Python script "Viewer.py"
-
Get your Data from webuntis
-
to do so, open the website where your timetable is. you should find the link on your schools website. The app is not supported.
-
Press f12 to open the developer tools.
-
Go to "Network"
-
Press ctrl + r to reload
-
there are a lot of things now. find something called data?school=..... there should be only one
-
Right click > copy > copy as cUrl (bash)
-
copy your cUrl command there and select "Python" > "requests" if it wasnt selected by default. i think it wouldnt work with "http client"
-
copy the script and delete "import requests. and the multi-line comment at the end.
-
Place your Data in the "get_data_from_Webuntis" function (its somewhere at the beginning)
-
i added comments there, so just delete everything between them and replace it with the code you got.
-
now hope that it works. i tried it with another school than my and got the data. but the format was another wich caused some errors in displaying the data. maybe you need to fix some things there.
-
too run the script, you need to have installed python and the needed python packages on your computer. you can download python on "https://python.org" and the packages over the cmd or powershell via "pip install requirements.txt"
-
make sure to open the cmd in the same folder where the .txt file is located.
-
maybe you want to build a .exe now?
-
use "pip install py2exe" and "pip install auto-py-to-exe" for that. now hope that everything works.