| 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 : /proc/3951573/root/tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
from playwright_stealth import stealth_sync
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 dump(pg,label):
print(f"\n===== {label}: {pg.url} =====")
links=pg.eval_on_selector_all("a","els=>els.map(e=>({t:(e.innerText||'').trim().slice(0,35),href:e.getAttribute('href')||'',id:e.id})).filter(x=>x.t)")
for l in links:
if l['t']: print(" LINK",l)
btns=pg.eval_on_selector_all("button,input[type=submit],input[type=button]","els=>els.map(e=>({t:(e.innerText||e.value||'').trim().slice(0,35),id:e.id,name:e.name}))")
for x in btns:
if x['t']: print(" BTN",x)
sels=pg.eval_on_selector_all("select,input[type=date],input[type=text].hasDatepicker, .ui-calendar input","els=>els.map(e=>({id:e.id,name:e.name,type:e.type}))")
for s in sels: print(" FIELD",s)
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(); stealth_sync(pg)
pg.goto(f"{BASE}/login.xhtml",wait_until="networkidle",timeout=60000); pg.wait_for_timeout(10000)
pg.fill("#username",USER); pg.fill("#password",PW); pg.click("#login"); pg.wait_for_timeout(6000)
print("logged in:",pg.url)
for label,frag in [("Meine Buchungen","buchung"),("Downloads","download")]:
# click menu link by text
try:
pg.click(f"text={label}",timeout=8000); pg.wait_for_timeout(5000)
dump(pg,label)
pg.screenshot(path=f"/tmp/pl_{frag}.png",full_page=True)
except Exception as e:
print(label,"ERR",str(e)[:120])
pg.goto(f"{BASE}/dashboard.xhtml",wait_until="networkidle",timeout=30000); pg.wait_for_timeout(2000)
b.close()