import re, os
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
html = open('index_main.html', encoding='utf-8').read()
ids = set(re.findall(r'\{id:"([^"]+)"', html))
print('Total PROGRAMS ids:', len(ids))
candidates = [
    'ucla-chem-phd','uchicago-chem-phd','stanford-chem-phd',
    'ucla-bmsb-phd','uchicago-bmb-phd','stanford-biochem-phd',
    'ucla-astro-phd','uchicago-astro-phd','stanford-appl-phys-phd',
    'ucla-bio-phd','stanford-bio-phd','ucla-biomathematics-phd',
    'stanford-bioe-phd','stanford-biophysics-phd','stanford-bmp-phd',
    'stanford-csb-phd','stanford-cheme-phd',
    'ucsd-chem-phd','berkeley-chem-phd','mit-chem-phd',
    'princeton-chem-phd','harvard-chem-phd','yale-chem-phd',
    'caltech-chem-phd','columbia-chem-phd','cornell-chem-phd',
    'northwestern-chem-phd','uiuc-chem-phd','umich-chem-phd',
]
for c in candidates:
    print(c, 'EXISTS' if c in ids else 'missing')
