# -*- coding: utf-8 -*-
import re, sys, io, pathlib
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
BASE = pathlib.Path(r"D:\work buddy\2026-11-05-14-15-52")
for pid in ['gatech-cs-ms','gatech-hci-ms','gatech-analytics-ms','gatech-stat-ms','gatech-me-ms',
            'gatech-bioinfo-ms','dartmouth-cs-ms','jhu-msf','cornell-mps-acct','nyu-msacc','vandy-ms-cs','notre-msa']:
    p = BASE / "details" / (pid + ".html")
    print("==", pid, p.exists(), p.stat().st_size if p.exists() else 0)
    if p.exists():
        t = p.read_text(encoding="utf-8", errors="ignore")
        u = []
        for x in re.findall(r'https?://[^"<> ]+', t):
            if x not in u:
                u.append(x)
        for x in u[:14]:
            print("   ", x)
