import re, sys
txt = open('index_main.html', encoding='utf-8', errors='replace').read()
ids = sys.argv[1:] or ['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)
    print(i, '|', (m.group(0)[:400] if m else 'NOT FOUND'))
