| 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
def cookies():
cs=[]
for line in open('/tmp/cj_day.txt'):
if line.startswith('#') or not line.strip(): continue
p=line.strip().split('\t')
if len(p)>=7: cs.append({'name':p[5],'value':p[6],'domain':p[0].lstrip('.'),'path':p[2]})
return cs
with sync_playwright() as pw:
b=pw.chromium.launch(); ctx=b.new_context(viewport={'width':1100,'height':900}); ctx.add_cookies(cookies())
pg=ctx.new_page()
pg.on('console', lambda m: print('JS',m.type+':',m.text))
pg.on('pageerror', lambda e: print('PAGEERR:',e))
reqs=[]
pg.on('requestfailed', lambda r: print('REQFAIL',r.url, r.failure))
pg.goto('https://seaside.pacim.de/index.php?getTemplate=tasks/day&date=2026-06-26&show=media', wait_until='networkidle')
pg.wait_for_timeout(2000)
print('SITE_URL defined:', pg.evaluate("typeof SITE_URL"))
print('dmRoot:', pg.query_selector('#dmRoot') is not None)
print('pane active:', pg.eval_on_selector('#tab-media','e=>e.classList.contains("active")') if pg.query_selector('#tab-media') else 'no pane')
print('dmStatus:', pg.eval_on_selector('#dmStatus','e=>e.className+" | "+e.textContent') if pg.query_selector('#dmStatus') else 'none')
print('dmGrid len:', pg.eval_on_selector('#dmGrid','e=>e.innerHTML.length') if pg.query_selector('#dmGrid') else 'none')
b.close()