import re, sys
txt = open('index_main.html', encoding='utf-8', errors='replace').read()
ids = ['cmu-cs-phd','cmu-mscs','duke-mae','duke-qfe','duke-meng-fintech','duke-mems-mse-phd','duke-mcb-phd','cmu-meche-phd','cmu-stat-phd','duke-math-phd']
for i in ids:
    m = re.search(r'{id:"' + i + r'"', txt)
    if not m:
        print(i, 'NOT FOUND'); continue
    blk = txt[m.start():m.start()+2500]
    u = re.search(r'url:"([^"]+)"', blk)
    print(i, '->', u.group(1) if u else '-')
