# -*- coding: utf-8 -*-
import io, sys, os, json, 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(12)

def fetch(url):
    req=urllib.request.Request(url,headers={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"})
    try:
        r=urllib.request.urlopen(req,context=ctx)
        b=r.read(); return r.status,len(b),b.decode("utf-8","ignore")
    except Exception as e:
        return type(e).__name__, str(e)[:60], ""

probes={
 "JHU BA-AI":"https://e-catalogue.jhu.edu/business/degrees-certificates/business-analytics-artificial-intelligence-master-science/",
 "JHU Finance":"https://e-catalogue.jhu.edu/business/degrees-certificates/finance-master-science/",
 "JHU Finance-FE":"https://e-catalogue.jhu.edu/business/degrees-certificates/finance-master-science-financial-econometrics/",
 "JHU Health Care Mgmt":"https://e-catalogue.jhu.edu/business/degrees-certificates/health-care-management-master-science/",
 "JHU Biostat MHS":"https://e-catalogue.jhu.edu/public-health/departments/biostatistics/biostatistics-mhs/",
 "JHU Biostat ScM":"https://e-catalogue.jhu.edu/public-health/departments/biostatistics/biostatistics-scm/",
 "Geo CS MS":"https://grad.georgetown.edu/computer-science/",
 "Geo Bioinfo":"https://bioinformatics.georgetown.edu/",
 "Geo Biostat MS":"https://biostatistics.georgetown.edu/ms/",
 "Geo Applied Econ":"https://grad.georgetown.edu/economics/",
 "Geo Cyber":"https://scs.georgetown.edu/programs/484/master-of-professional-studies-in-cybersecurity-risk-management/",
 "Vanderbilt BME":"https://engineering.vanderbilt.edu/departments/biomedical-engineering/graduate-programs/",
 "Vanderbilt Biostat":"https://www.vanderbilt.edu/biostatistics-graduate/master-of-science/",
 "Vanderbilt Biomed Sci":"https://as.vanderbilt.edu/biomedical-sciences/",
 "Rice ga Finance":"https://ga.rice.edu/programs-study/departments-programs/business/finance",
 "Rice ga Statistics":"https://ga.rice.edu/programs-study/departments-programs/engineering/statistics",
 "CMU MEIM":"https://www.heinz.cmu.edu/programs/entertainment-industry-management-master",
 "Duke DAHC":"https://gradschool.duke.edu/academics/programs-degrees/digital-art-history-computational-media/",
}
for k,u in probes.items():
    st,ln,body=fetch(u)
    print(f"{k}: {st} {ln}")
