modules.dhbw.lecture_importer.CourseImporter

class modules.dhbw.lecture_importer.CourseImporter[source]

Bases: Importer

Class to achieve the list of all courses of the DHBW Mannheim.

urlstr

Universal given link for the dhbw-course-calendars.

course_listList[str]

List containing all courses (e.g. “TINF19 IT2”) after scraping

uid_listuid_list[str]

List containing all course-uid’s after scraping

Methods

drop_header

method to drop an header

get_course_uid

Get a course uid by providing a course name.

scrape

Method to scrape the list of all courses.

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

get_course_uid(course_str)[source]

Get a course uid by providing a course name.

course_str : List[str]

str

scrape()[source]

Method to scrape the list of all courses. List is stored in course_list and uid_list.

None