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
method to drop an header
Async function to acquire the dualis authentication token.
Sends a logout request (log the user out of the dualis session).
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