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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6d676d386b3dbaa4e3ae82e92e4797cef332bb5d8f480f3bc0f41e871afc882 |
|
MD5 | 433346b41602140fe2eb28860d0f3224 |
|
BLAKE2b-256 | f17412f70a11865114911439244e8c06cfe5d67f0d2a45680d42c676b6b3a4b3 |
Close
Hashes for hhs_vertretungsplan_parser-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c591ee5d765f4664c7bd516d5cf90f1a29e060caf355d71e8bbaf55784eaec |
|
MD5 | 2818b52261377e084846f4bfb0060954 |
|
BLAKE2b-256 | 77693f99995446fb14f777d96b1ad0821bd16f68bab063fc25d1b9d879583b87 |