Skip to content

kntjspr/ustep-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ustep-scraper

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.

Setup

$ pipx install uv
$ uv sync

copy .env.example to .env and fill in your credentials:

cp .env.example .env

Usage

$ uv run main.py

Note

The 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.

Env Vars

Variable Description
USTEP_USERNAME your ustep username
USTEP_PASSWORD your ustep password

About

a simple ustep tasks scraper

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages