import re

with open('index_main.html','r',encoding='utf-8') as f:
    html = f.read()

# 找到新追加的5条的位置
new_ids = ['usc-cs-ms', 'emory-cs-ms', 'emory-ds-ms', 'berkeley-mims', 'ucla-masds']
for nid in new_ids:
    idx = html.find(nid)
    if idx >= 0:
        # 看前后100字符
        start = max(0, idx - 100)
        end = min(len(html), idx + 100)
        context = html[start:end].replace('\n', '\\n')
        print(f'{nid} 位置: {idx}')
        print(f'  上下文: ...{context}...')
        print()
