| 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"
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.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_load_state("networkidle",timeout=60000)
pg.wait_for_timeout(3000)
print("AFTER LOGIN url=",pg.url," title=",pg.title())
# save storage state (cookies) for reuse
ctx.storage_state(path="/tmp/pl_state.json")
# dump nav: links and buttons text+href
links=pg.eval_on_selector_all("a","els=>els.map(e=>({t:(e.innerText||'').trim().slice(0,40),href:e.href})).filter(x=>x.t||x.href)")
print("LINKS:")
for l in links[:60]: print(" ",l)
btns=pg.eval_on_selector_all("button, input[type=submit]","els=>els.map(e=>({t:(e.innerText||e.value||'').trim().slice(0,40),id:e.id,name:e.name}))")
print("BUTTONS:")
for x in btns[:40]: print(" ",x)
pg.screenshot(path="/tmp/pl_dash.png",full_page=True)
b.close()