| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
BASE="https://www.parkinglist.de/ParkingDashboard"
USER="service@parken-am-schiff.de"; PW="BYx63wLLxP"
UA="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
def log_resp(r):
if "login.xhtml" in r.url and r.request.method=="POST":
print("LOGIN POST ->",r.status, dict(r.headers).get("content-type",""))
with sync_playwright() as p:
b=p.chromium.launch(headless=True,args=["--no-sandbox","--disable-blink-features=AutomationControlled"])
ctx=b.new_context(user_agent=UA,locale="de-DE",viewport={"width":1440,"height":960})
pg=ctx.new_page(); pg.on("response",log_resp)
pg.goto(f"{BASE}/login.xhtml",wait_until="domcontentloaded",timeout=60000)
pg.wait_for_selector("#username",timeout=30000)
pg.fill("#username",USER); pg.fill("#password",PW)
pg.click("#login"); pg.wait_for_timeout(8000)
print("URL:",pg.url)
b.close()