# -*- coding: utf-8 -*-
import sys, io, re, pathlib
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="ignore")
t = re.sub(r"<script.*?</script>", " ", t, flags=re.S)
t = re.sub(r"<style.*?</style>", " ", t, flags=re.S)
t = t.replace("&nbsp;", " ").replace("&amp;", "&")
t = re.sub(r"<[^>]+>", "\n", t)
L = [re.sub(r"\s+", " ", x).strip() for x in t.split("\n")]
L = [x for x in L if x]
i = 0
# find section start: "Tuition"
for n, x in enumerate(L):
    if "Master" in x or "Graduate" in x:
        i = n; break
out = L[max(0,i-200): i+600]
print("\n".join(out))
