Library
uoc.py
is used for get timeline in all classrooms.When you call the
get_timeline_html()
method the following files are generated automatically:- timeline.html
- timeline.csv (for use in another programs like Notion)
- timeline.ics (for use in Calendars)
Also get messages and show toast notifications (tested on Windows 10).
-
Download code & configure toml file
- UOC credentials (username & password)
- Configure your chromedriver path.
Download your specific chromedriver version here
- Information about your classrooms (classroomID, name, color and subjectId).
You can found this information (classroomId and subjectId) in the url when you open a classroom in new window.
-
Creation of the virtual environment
py -m venv timeline-env
- Activate virtual environment
On Windows, run:
.\timeline-env\Scripts\activate.bat
On Unix or MacOS, run::
source timeline-env/bin/activate
- Install libraries
pip install -r requirements.txt
- Program execution
A simple program (main.py
) is used to load the library and execute the necessary code to be able to generate the files and see the message notifications.py main.py
You're free to modify this program to get, for example, messages in a loop. Enjoy! ;)