A simple script by reverse engineering the calendar tasks and events api of ustep moodle. It's good for integrating with custom apps or scripts to get your tasks and events.
I created this so that my task list will appear on my hyprland waybar.
$ pipx install uv
$ uv synccopy .env.example to .env and fill in your credentials:
cp .env.example .env$ uv run main.pyThe script uses Selenium to login as I don't quite understand the login api yet. It uses non structured request data and returns in HTML after returning Request Code 303 to three different URLs. It also seems to be using CRSF token which makes Selenium a better and more robust choice.
| Variable | Description |
|---|---|
USTEP_USERNAME |
your ustep username |
USTEP_PASSWORD |
your ustep password |