A simple parser for Heinrich-Hertz-Schule, Hamburg, class substitution schedule
Project description
hhs-vertretungsplan
Python parser for the Heinrich-Hertz-Schule, Hamburg, Vertretungsplan interface
Retrieves latest status of classes being substituted.
Ask your Elternvertreter for username and password.
Usage:
import aiohttp
import asyncio
import sys
from hhs_vertretungsplan_parser.vertretungsplan_parser import HHSVertretungsplanParser
async def main(user: str, password: str):
async with aiohttp.ClientSession() as session:
hhs = HHSVertretungsplanParser(session, user, password)
await hhs.load_data()
for vertretung in hhs.vertretungen:
print(f"Klasse {vertretung.klasse} hat am {vertretung.datum} in Stunde {vertretung.stunde} im Fach {vertretung.fach} bei {vertretung.vertreter} Vertretung.")
if (__name__ == '__main__'):
# on Windows add:
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
if len(sys.argv) == 3:
asyncio.run(main(sys.argv[1], sys.argv[2]))
else:
print(f"usage: python hhs-vertretungsplan.py <user> <password>")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hhs-vertretungsplan-parser-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d7fd2f8931eeacfef2c08cb76d25c5a5681a14e7423a4995fdf4d82f3fc9475 |
|
MD5 | e5a7f9460daf27f09c02e9c57dfd27c2 |
|
BLAKE2b-256 | 81d6ff0e245c0168d8846fc2c6110366c173f7f30c5794f8bc23b503531eb666 |
Close
Hashes for hhs_vertretungsplan_parser-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff2d5af157386710ad2f63d305d7320fea5fe32bba00097d6ee5a3a5844a63e3 |
|
MD5 | 48c0a8fc02b7539e4b9aa004be63d57c |
|
BLAKE2b-256 | 846bd8c17994700a75ae7819c5c1e6d9e4c988768a443f87a08f255a1327ec7a |