modules.dhbw.lecture_importer.LectureImporter

class modules.dhbw.lecture_importer.LectureImporter[source]

Bases: Importer

Class to achieve the course-specific timetable.

url: str

Universal given link for the dhbw-course-calendars.

lectures: pd.DataFrame

List containing all lectures of a specified course after scraping

Methods

drop_header

method to drop an header

limit_weeks_in_list

method to limit/crop the lectures-DataFrame gathered in LectureImporter.scrape() by limiting the weeks

scrape

Method to scrape the courses-icalendar and parse it to a pandas.DataFrame.

Attributes

headers

scraped_data

url

drop_header(header) None

method to drop an header

header: str

the name of the header which should be dropped

None

limit_weeks_in_list(offset)[source]

method to limit/crop the lectures-DataFrame gathered in LectureImporter.scrape() by limiting the weeks

offsetint

offsets returned data by a number of weeks

pd.Dataframe

cropped lectures-DataFrame

scrape(uid)[source]

Method to scrape the courses-icalendar and parse it to a pandas.DataFrame.

uidstr or int

specific course-uid (get all courses from CourseImporter)

pandas.DataFrame