# -*- coding: utf-8 -*-
import io, sys, os, ssl, urllib.request, urllib.error
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
checks=[
 ("stanford_grad","https://gradadmissions.stanford.edu/"),
 ("usc_viterbi","https://viterbigradadmission.usc.edu/"),
 ("jhu_eng","https://engineering.jhu.edu/"),
 ("nyu_gsas","https://gsas.nyu.edu/"),
 ("rice_cs","https://cs.rice.edu/"),
 ("cornell_chem_ms","https://chemistry.cornell.edu/graduate-program/ms-program"),
]
for name,url in checks:
    try:
        req=urllib.request.Request(url,headers={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0"})
        r=urllib.request.urlopen(req,timeout=12,context=ctx)
        b=r.read(); print(name,r.status,len(b))
    except urllib.error.HTTPError as e:
        print(name,"HTTP",e.code)
    except Exception as e:
        print(name,"ERR",type(e).__name__,str(e)[:60])
