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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5cd90ca67affd2d3b912f57b40c2c8194b77d2471a6d116b1f61d8149e05a34 |
|
MD5 | 9af50cfe11b5097f32063a1603774936 |
|
BLAKE2b-256 | 43398cb8c9fd30e67c08e89d156d7a9ecdc44b1703a67f4d04c67527f9bd8262 |
Close
Hashes for hhs_vertretungsplan_parser-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad90af4113c2d661978898ddefc735e897ab96a9fa78211fbd9815d46a4e83fb |
|
MD5 | 54432cbf29a98cd5d9745d5d2247eb09 |
|
BLAKE2b-256 | d127400444f86bce7c822d077aeaab1f2101f8b6c95aff1088ea01dec766e7aa |