#!/usr/bin/env python3
"""Cek beranda live: apakah tautan spam dan nomor lama muncul kembali (dugaan injeksi ulang)."""
import re, time, urllib.request

UA = {"User-Agent": "Mozilla/5.0"}
URL = "https://www.theskincodeclinic.com/"
t = urllib.request.urlopen(urllib.request.Request(f"{URL}?cek={int(time.time())}", headers=UA), timeout=90).read().decode("utf-8", "replace")
print(f"panjang HTML: {len(t)}")
for kata in ["6281335114324", "6285194936363", "6285117444417", "casino", "moonwin", "jeetcity",
             "winorio", "bohocasino", "sasjen", "zonnepaneel", "1883magazine", "engineeringimpact",
             "0812-XXXX"]:
    n = len(re.findall(re.escape(kata), t, re.I))
    print(f"   {kata:<20} {n}")

m2 = re.search(r".{200}(casino|moonwin).{200}", t, re.I | re.S)
if m2:
    print("\nkonteks di HTML live:")
    print(re.sub(r"\s+", " ", m2.group(0))[:500])
