import re
h = open('index_main.html', encoding='utf-8').read()
m = re.search(r'const PROGRAMS\s*=\s*\[(.*?)\];', h, re.DOTALL)
body = m.group(1)
recs = re.findall(r'\{id:"([^"]+)",s:"([^"]+)",n:"([^"]+)",en:"([^"]+)",deg:"([^"]+)"', body)
for tgt in ['dartmouth', 'uchicago', 'notre', 'caltech', 'vanderbilt']:
    items = [r for r in recs if r[1] == tgt]
    print(f'=== {tgt} ({len(items)}) ===')
    for r in items:
        print(f'  {r[0]:35s} | {r[4]:8s} | {r[3][:75]}')
