2026.03.29 20:00 Gitea_manager javítás előtt

This commit is contained in:
Roo
2026-03-29 17:59:06 +00:00
parent 03258db091
commit ba8b6579ef
148 changed files with 7951 additions and 591 deletions

View File

@@ -0,0 +1,27 @@
import httpx
import asyncio
async def get_full_vehicle_data(kenteken: str):
# A legfontosabb táblák listája
resources = {
"Alapadatok": "m9d7-ebf2",
"Üzemanyag": "826y-p86p",
"Műszaki": "8ys7-d773"
}
kenteken = kenteken.upper().replace("-", "")
async with httpx.AsyncClient() as client:
for name, res_id in resources.items():
url = f"https://opendata.rdw.nl/resource/{res_id}.json?kenteken={kenteken}"
resp = await client.get(url)
if resp.status_code == 200 and resp.json():
print(f"--- {name} ({res_id}) ---")
print(json.dumps(resp.json()[0], indent=2))
else:
print(f"--- {name} ({res_id}): Nincs adat vagy 404 ---")
if __name__ == "__main__":
import json
asyncio.run(get_full_vehicle_data("ZT646P")) # Teszt rendszám