# -*- coding: utf-8 -*-
import io, sys, os, urllib.request, ssl, 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
pages={
 "bmb":"https://msbiochemistry.georgetown.edu/",
 "esm":"https://esm.georgetown.edu/",
 "ae":"https://grad.georgetown.edu/economics/",
 "fe":"https://econ.georgetown.edu/ms-financial-economics/how-to-apply/",
}
for k,u in pages.items():
    req=urllib.request.Request(u,headers={"User-Agent":"Mozilla/5.0"})
    t=urllib.request.urlopen(req,timeout=15,context=ctx).read().decode("utf-8","ignore")
    hrefs=re.findall(r'href="([^"]+)"',t)
    rel=[h for h in hrefs if re.search(r'admiss|curricul|tuition|apply|requirement|tuition|cost|course|degree-plan|financial',h,re.I)]
    print("="*12,k)
    for h in dict.fromkeys(rel): print("  ",h)
