import urllib.request, ssl, concurrent.futures as cf, sys ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE UA="Mozilla/5.0 (compatible; SempiteResearch/1.0; +https://sempite.com/research/)" def classify(dom): url=f"https://{dom}/llms.txt" try: req=urllib.request.Request(url,headers={"User-Agent":UA}) r=urllib.request.urlopen(req,timeout=8,context=ctx) st=r.status; ct=(r.headers.get("content-type","") or "").lower() hdrs=" ".join(k.lower() for k in r.headers.keys()) shopify = ("x-shopify" in hdrs) or ("x-sorting-hat" in hdrs) or ("shopify" in (r.headers.get("server","") or "").lower()) body=r.read(6000).decode("utf-8","replace") low=body.lower() if "html" in ct or "