27 lines
595 B
Python
27 lines
595 B
Python
|
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)
|