This commit is contained in:
2025-09-21 21:35:39 +02:00
parent 422aae12ee
commit 4a7e1039a9
5 changed files with 553 additions and 6 deletions

View File

@@ -10,9 +10,9 @@ from pathlib import Path
import json, sys, time, re
from playwright.sync_api import sync_playwright, TimeoutError as PWTimeout
STATE_FILE = r"/medevio_storage.json"
STATE_FILE = r"medevio_storage.json"
BASE_URL = "https://my.medevio.cz/mudr-buzalkova/klinika/pacienti"
PATIENT_ID = "236b3759-4c2b-4fa8-ab52-ce4ddb2e9064" # <-- put target ID here
PATIENT_ID = "fcb2414b-067b-4ca2-91b2-6c36a86d4cbb" # <-- put target ID here
# ---------- helpers ----------
@@ -211,7 +211,7 @@ def main():
sys.exit(1)
with sync_playwright() as p:
browser = p.chromium.launch(headless=True) # set False to watch
browser = p.chromium.launch(headless=False) # set False to watch
context = browser.new_context(storage_state=str(sf))
context.set_default_navigation_timeout(30000)
context.set_default_timeout(15000)