modules.dhbw.moodle.MoodleImporter
- class modules.dhbw.moodle.MoodleImporter[source]
Bases:
ImporterSession
Class to import data from moodle.
- url: str
The given url for moodle.
- logout_url: str
The url for logout.
- login(self, username, password): None
creates a session for the user
- find_all_bbb_rooms(self, course_dict): MoodleCourseDict
find all bbb rooms and store them in the given dictionary
- scrape(self): None
scrape moodle data
- logout(self): None
sends the logout request
Methods
method to drop an header
Method to find all bbc rooms for a given course.
Acquire the authentication token.
Sends a logout request.
Scrape selected data from moodle.
Attributes
logout_url
auth_token
email
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
- find_all_bbb_rooms(course_dict)[source]
Method to find all bbc rooms for a given course.
- course_dict: MoodleCourseDict
a typed dictionary
- course_dict: MoodleCourseDict
a typed dictionary