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

drop_header

method to drop an header

find_all_bbb_rooms

Method to find all bbc rooms for a given course.

login

Acquire the authentication token.

logout

Sends a logout request.

scrape

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

async login(username, password)[source]

Acquire the authentication token.

username: str

username used to login

password: str

password used to login

MoodleImporter

logout()[source]

Sends a logout request.

None

async scrape()[source]

Scrape selected data from moodle.

None