# -*- coding: utf-8 -*-
import io, sys, os, re, urllib.request, ssl, socket, 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("_15_gd-tui2.txt",encoding="utf-8").read()
for m in re.finditer(r"\$[\d,]+",t):
    i=m.start(); print(f"[{m.group(0)}] …{t[max(0,i-90):i+90]}")
print("\n=== gd-tui2 head ===")
i=t.find("Tuition")
print(t[i:i+700])
# 重新抓 gh-adm html 提取 tuition 链接
ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
socket.setdefaulttimeout(15)
u="https://healthinformatics.georgetown.edu/admissions/"
req=urllib.request.Request(u,headers={"User-Agent":"Mozilla/5.0"})
raw=urllib.request.urlopen(req,context=ctx).read().decode("utf-8","ignore")
links=[l for l in re.findall(r'href="([^"]+)"',raw) if any(k in l.lower() for k in ["tuition","cost","funding","scholar","aid"])]
print("\n=== GH TUI LINKS ===")
for l in dict.fromkeys(links): print(" ",l)
