# -*- coding: utf-8 -*-
import re, pathlib, sys, io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
BASE = pathlib.Path(r"D:\work buddy\2026-11-05-14-15-52")
t = (BASE / "cache" / "bursar-fall26.html").read_text(encoding="utf-8", errors="replace")
t = re.sub(r"<[^>]+>", " ", t); t = re.sub(r"\s+", " ", t)
for kw in ["Industrial Engineering", "Operations Research", "Materials Science", "Urban Analytics",
           "Computational Science", "Graduate (Master", "Master's Degree", "Graduate Programs"]:
    for m in list(re.finditer(kw, t))[:2]:
        print("==", kw, "|", t[max(0, m.start()-120):m.start()+200])
