sqdkjqlsjdklqsjdlqskjd azjdjksqhvdjqskhdkqhsj zkhjdhqksldjqlskdjlqskjd zjhdjqlskdhqsljkhdsqd  import urllib.request, os BASE = "/home/streamviewiptv/public_html" ok = broken = [] ok = [] broken = [] domains = [d for d in os.listdir(BASE) if os.path.isdir(os.path.join(BASE,d)) and "." in d][:50] for d in sorted(domains): try: req = urllib.request.Request(f"https://{d}", headers={"User-Agent":"Mozilla/5.0"}) with urllib.request.urlopen(req, timeout=6) as r: url = r.url body = r.read(200).decode(errors="ignore") if "setup-config" in url or "403" in str(r.status): broken.append(f"{d}:setup") else: ok.append(d) except Exception as e: code = str(e) if "403" in code: broken.append(f"{d}:403") elif "500" in code: broken.append(f"{d}:500") else: broken.append(f"{d}:err") print(f"OK: {len(ok)} BROKEN: {len(broken)}") print("BROKEN:", broken)