# -*- coding: utf-8 -*-
import re, io, sys, os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
base = r'D:\work buddy\2026-11-05-14-15-52'
lines = open(os.path.join(base, 'index_main.html'), encoding='utf-8').read().splitlines()
seg = '\n'.join(lines[203:470])
pat = re.compile(r's:"([^"]*)",n:"([^"]*)".*?url:"([^"]*)"', re.S)
recs = pat.findall(seg)
print('配对记录:', len(recs))
by = {}
for s, n, u in recs:
    by.setdefault(s, []).append((n, u))
for s in ['col', 'jhu', 'usc', 'cmu', 'nyu', 'up', 'umich', 'duke', 'nu', 'ut', 'ubc', 'mcg', 'uw']:
    print('===', s, '已核验', len(by.get(s, [])))
    for n, u in by.get(s, []):
        print('   -', n, '|', u)
