# -*- coding: utf-8 -*-
import io, sys, os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")

idx = open("index_main.html", encoding="utf-8").read()
seg = idx[idx.find("const PROGRAMS="):idx.find("const CATD=")]
catd_seg = idx[idx.find("const CATD="):idx.find("const VERIFIED_DETAILS=")]

dets = [
    "details/gatech-international-affairs-ms.html",
    "details/gatech-global-development-ms.html",
    "details/gatech-mcrp.html",
    "details/gatech-march.html",
    "details/gatech-biology-ms.html",
]
for d in dets:
    print(d, "PROGRAMS=", d in seg, "CATD=", d in catd_seg, "disk=", os.path.exists(d))
