import re
html = open('index_main.html', encoding='utf-8').read()
m = re.search(r'const VERIFIED_DETAILS=new Set\(\[([\s\S]*?)\]\)', html)
vd = set(re.findall(r'"(details/[^"]+)"', m.group(1)))
pm = re.search(r'const PROGRAMS=\[([\s\S]*?)\n\];', html)
progs_block = pm.group(1)
urls = re.findall(r'url:"(details/[^"]+)"', progs_block)
missing = [u for u in urls if u not in vd]
print(f'Total PROGRAMS urls: {len(urls)}')
print(f'VD size: {len(vd)}')
print(f'Missing from VD: {len(missing)}')
for u in missing:
    print(' -', u)
