diff --git a/classes/hafas.py b/classes/hafas.py new file mode 100644 index 0000000..bc59e93 --- /dev/null +++ b/classes/hafas.py @@ -0,0 +1,26 @@ +from datetime import datetime + + +class Hafas: + API_URL = "https://fahrplan.oebb.at/bin/mgate.exe?rnd=%i" + + BASE_CONTENT = { + "id": "h7iqfi6m2eskyk8x", + "ver": "1.32", + "lang": "deu", + "auth": { + "type": "AID", + "aid": "5vHavmuWPWIfetEe" + }, + "client": { + "id": "OEBB", + "type": "WEB", + "name": "webapp", + "l": "vs_webapp" + }, + "formatted": False, + "ext": "OEBB.11", + } + + def __init__(self): + self.timestamp = int(datetime.now().timestamp() * 1000)