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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8918ed6f8fa9e49c83e13ea82b34ab72027d173ae9f61353b397ddc1cdc97d4 |
|
MD5 | 50f047f53044dba5d4c10206fe8cdcf3 |
|
BLAKE2b-256 | ef7bfda08f37f6b76faf346261e6a916bea01b4a90e494a1eb445028b326e58b |
Close
Hashes for hhs_vertretungsplan_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01b2daaf602c4c24174c0e49072df0edac5e231d754c12776a2092c826e3a1b |
|
MD5 | 61826aee5cf17d004891c3b2ffc9f741 |
|
BLAKE2b-256 | 43cfe633d4e5d32c74c21b4f7f5733af50fe356c817933fb5ac453adb531b351 |