# -*- coding: utf-8 -*-
import io, sys, os, json, urllib.request, ssl
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
todo={os.path.basename(t["det"]):t for t in json.load(open("todo_upgrade.json",encoding="utf-8")) if t["s"]=="usc"}
cands=["ce04f45","c328202","cf8c0b1","c860147","c0f389a","ce5bd50","cf160ff","c5b9ed2","c697818","cfaf8d4"]
ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
for c in cands:
    t=todo.get("usc-"+c+".html")
    if not t: print(c,"NOT IN TODO"); continue
    url=t["url"]
    try:
        req=urllib.request.Request(url,headers={"User-Agent":"Mozilla/5.0"})
        b=urllib.request.urlopen(req,timeout=12,context=ctx).read()
        print(c,"200",len(b),"B",t["en"][:34])
    except Exception as e:
        print(c,"ERR",type(e).__name__,str(e)[:40],t["en"][:30])
