# -*- coding: utf-8 -*-
import io, sys, os, re, html
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
t=open("_17_mmkt-cur.txt",encoding="utf-8").read()
t=html.unescape(re.sub(r"<script.*?</script>","",t,flags=re.S)); t=html.unescape(re.sub(r"<style.*?</style>","",t,flags=re.S))
t=re.sub(r"<[^>]+>"," ",t); t=html.unescape(re.sub(r"\s+"," ",t))
for kw in ["MGT","Emphasis","Brand","Consumer","Digital","Required Course","Core","curriculum","30 credit","credit hours"]:
    m=re.search(re.escape(kw),t)
    if m:
        s=max(0,m.start()-60); e=min(len(t),m.end()+200); print(f"[{kw}] {t[s:e]}\n")
