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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46cdb13234089fbae8a0e0460a6d10951eeaf9267dd50d380b9eaeed8e0423ed |
|
MD5 | 5672255d460cd96bbd324b86c77be25f |
|
BLAKE2b-256 | 0ae9bec6333202ce03cc10ba8e4f44b4b1bfa3b158ff8a5f675c8aa3823c8302 |
Close
Hashes for hhs_vertretungsplan_parser-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d6e0c16b373b027c754774dba5bce043974c79bafca980e6c35fa40dcbc8f8 |
|
MD5 | 94f88c4ca89f2af48a69f33250118bfb |
|
BLAKE2b-256 | 5d715cb1f136d07401ca4fe38e977c2d7d287c731ac308424ff0d2d5402f502e |