import re
html = open('index_main.html', encoding='utf-8').read()
ids = sorted(set(re.findall(r'\{id:"(berkeley-[^"]+)"', html)))
for i in ids:
    if any(k in i for k in ['macss', 'maiml', 'stat', 'sci-edu', 'bioproc', 'mph', 'epi', 'hpm']):
        print(i)
