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 = [
    'stanford-bio-phd','stanford-biophysics-phd','stanford-bmp-phd',
    'stanford-cancer-phd','stanford-csb-phd',
    'uchicago-cancer-phd','uchicago-cmb-phd',
    'ucla-bio-phd','ucla-biostat-ms','ucla-baus-ms',
    'stanford-bioe-phd','stanford-apl-phd','stanford-biochem-phd',
    'uchicago-bmb-phd','ucla-bmsb-phd',
    'stanford-chbe-phd','stanford-ee-phd','stanford-cs-phd',
    'uchicago-brain-phd','uchicago-molmetab-phd',
    'ucla-cell-phd','ucla-genetics-phd',
]
for c in candidates:
    print(c, 'EXISTS' if c in ids else 'missing')
