# -*- coding: utf-8 -*-
import io, sys, os, urllib.request, ssl, socket, re, html
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
socket.setdefaulttimeout(15)
u="https://biomedicalprograms.georgetown.edu/prospective/tuition/"
req=urllib.request.Request(u,headers={"User-Agent":"Mozilla/5.0"})
r=urllib.request.urlopen(req,context=ctx); b=r.read(); raw=b.decode("utf-8","ignore")
txt=re.sub(r"<script[\s\S]*?</script>"," ",raw); txt=re.sub(r"<style[\s\S]*?</style>"," ",txt)
txt=html.unescape(re.sub(r"<[^>]+>"," ",txt)); txt=re.sub(r"\s+"," ",txt).strip()
open("_15_gh-tui.txt","w",encoding="utf-8").write(txt)
print(r.status,len(b),"txt",len(txt))
for m in re.finditer(r"\$[\d,]+",txt):
    i=m.start(); print(f"[{m.group(0)}] …{txt[max(0,i-80):i+80]}")
