EdupageAPI / edupage-api

A python library for accessing your Edupage account
https://edupageapi.github.io/edupage-api/
GNU General Public License v3.0
66 stars 13 forks source link

[Feature request] Get the curriculum #65

Closed ivanhrabcak closed 9 months ago

ivanhrabcak commented 1 year ago

Is your feature request related to a problem? Please describe. There is no way to get the whole curriculum or what part of the curriculum will be covered on a particular lesson.

Describe the solution you'd like A simple way to get the whole curriculum and a way to get the part of the curriculum that will be covered during a particular lesson.

Requested by @cfpwastaken on discord.

ivanhrabcak commented 9 months ago

Added support in 0.10.7 The Lesson class now has a curriculum property:

from edupage_api import Edupage
from datetime import datetime

edupage = Edupage()
edupage.login("Username", "Password", "Subdomain")

timetable = edupage.get_timetable(datetime.now())
timetable.lessons[0].curriculum # The first lesson's curriculum