# -*- coding: utf-8 -*-
import io, sys, os, re, json
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
idx=open("index_main.html",encoding="utf-8").read()
prog=idx[idx.find("const PROGRAMS="):idx.find("const CATD=")]
catd=idx[idx.find("const CATD="):idx.find("const VERIFIED_DETAILS=")]
prog_dets=set(re.findall(r'url:"([^"]+)"',prog))
catd_dets=set(re.findall(r'"(details/[^"]+)"',catd))
checks=[
 "notre-applied-and-computational-mathematics-and-statistics-ms---masters-professional.html",
 "notre-computer-science-and-engineering-mscse---masters-professional.html",
 "notre-data-science-ms---masters-professional.html",
 "uw-c2f6425.html",
 "wustl-stats-data-science-polsci-conc-ma.html",
 "usc-c531fe9.html","usc-cac5b60.html","usc-ccfb8b7.html","usc-c8eee33.html",
 "geo-cybersecurity-risk-management-ms.html","cmu-c46c856.html",
 "cornell-c4ed07c.html","cornell-c7c652f.html","cornell-c3b1b9a.html",
 "jhu-c785e3d.html","jhu-c13629c.html",
]
for d in checks:
    det="details/"+d
    print(f'{"PROG" if det in prog_dets else "----"} {"CATD" if det in catd_dets else "----"} {d}')
print("\n--- PROGRAMS 中 uw / wustl-stats / notre / usc 商院 det ---")
for d in sorted(prog_dets):
    b=os.path.basename(d)
    if b.startswith(("uw-","wustl-stats","notre-","usc-fin","usc-mkt","usc-ba","usc-c531","usc-cac5","usc-ccfb","usc-c8ee")):
        print("  ",d)
