# -*- coding: utf-8 -*-
import re, sys, io, pathlib, html as H
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
CACHE = pathlib.Path(r"D:\work buddy\2026-11-05-14-15-52\cache")
raw = (CACHE / "gatech-cs.html").read_text(encoding="utf-8", errors="ignore")
for kw in ["Program Requirements", "Program of Study", "credit hours", "CS 6"]:
    print(kw, [m.start() for m in re.finditer(kw, raw)][:12])
# print raw around first 'Program of Study'
i = raw.find("Program of Study")
print(raw[i-200:i+2000])
