# -*- coding: utf-8 -*-
import urllib.request, ssl, io, sys, os, json
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
SCTX = ssl.create_default_context(); SCTX.check_hostname=False; SCTX.verify_mode=ssl.CERT_NONE
UA = {"User-Agent":"Mozilla/5.0"}
cands = [
    ("NYU Tandon Cybersecurity", "https://bulletins.nyu.edu/graduate/engineering/programs/cybersecurity-ms/"),
    ("NYU Tandon Industrial Engineering", "https://bulletins.nyu.edu/graduate/engineering/programs/industrial-engineering-ms/"),
    ("NYU Tandon Construction Management", "https://bulletins.nyu.edu/graduate/engineering/programs/construction-management-ms/"),
    ("NYU Tandon Integrated Design Media", "https://bulletins.nyu.edu/graduate/engineering/programs/integrated-design-media-ms/"),
    ("NYU Tandon Transportation", "https://bulletins.nyu.edu/graduate/engineering/programs/transportation-planning-and-engineering-ms/"),
    ("NYU Tandon Urban Science", "https://bulletins.nyu.edu/graduate/engineering/programs/urban-science-and-informatics-ms/"),
    ("NYU Tandon Bioinformatics", "https://bulletins.nyu.edu/graduate/engineering/programs/bioinformatics-ms/"),
    ("NYU Tandon Biotech", "https://bulletins.nyu.edu/graduate/engineering/programs/biotechnology-ms/"),
    ("NYU Tandon Environmental", "https://bulletins.nyu.edu/graduate/engineering/programs/environmental-health-engineering-ms/"),
    ("NYU Tandon Electrical Comp", "https://bulletins.nyu.edu/graduate/engineering/programs/electrical-computer-engineering-ms/"),
]
for name, url in cands:
    try:
        req = urllib.request.Request(url, headers=UA)
        r = urllib.request.urlopen(req, timeout=12, context=SCTX)
        body = r.read()
        print(f"OK  {r.status} {len(body):>7}B  {name}")
    except Exception as e:
        print(f"ERR {type(e).__name__:>20}  {name}")
