# -*- coding: utf-8 -*-
import sys, io, re, os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
BASE = r"D:\work buddy\2026-11-05-14-15-52"
cands = ["ucsd-cse-ms","ucsd-mae-ms","ucsd-se-ms","ucsd-math-app-ms","ucsd-bioe-med-ms",
         "ucsd-es-bb-ms","ucsd-es-pe-ms","ucsd-es-cm-ms","ucsd-es-ce-ms","ucsd-css-ms","ucsd-css",
         "ucsd-cse-cpss-ms","ucsd-dse-ms","ucsd-bioe"]
for pid in cands:
    fp = os.path.join(BASE, "details", pid + ".html")
    print("==", pid, "exists" if os.path.exists(fp) else "MISSING", os.path.getsize(fp) if os.path.exists(fp) else "")
    if not os.path.exists(fp):
        continue
    txt = open(fp, encoding="utf-8").read()
    for i, ln in enumerate(txt.split("\n"), 1):
        if re.search(r"学费|Tuition|tuition|费用|费用卡|card", ln):
            print("   L%d: %s" % (i, ln.strip()[:180]))
