modules.dhbw.dualis.DualisImporter

class modules.dhbw.dualis.DualisImporter[source]

Bases: ImporterSession

Class to import data from dualis.

url: str

the given url for dualis

params: dict

dict containing the params for the requests

login(self, username, password): None

creates a session for the user

scrape(self): None

scrape for the website data

logout(self): None

removes the session

Methods

drop_header

method to drop an header

login

Async function to acquire the dualis authentication token.

logout

Sends a logout request (log the user out of the dualis session).

scrape

Scrape the wanted data from the dualis-website.

Attributes

params

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

async login(username, password)[source]

Async function to acquire the dualis authentication token.

username: str

username used to login

password: str

password used to login

DualisImporter

logout()[source]

Sends a logout request (log the user out of the dualis session).

None

async scrape()[source]

Scrape the wanted data from the dualis-website.

None