# -*- coding: utf-8 -*-
import io, sys, os, re
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()
catd=idx[idx.find("const CATD="):idx.find("const VERIFIED_DETAILS=")]
dets=["rice-chemical-biomolecular-engineering.html","rice-civil-environmental-engineering.html","rice-materials-science-nanoengineering.html","rice-bioengineering.html"]
for d in dets:
    i=catd.find(d)
    if i<0: print("NOT IN CATD",d); continue
    line=catd[catd.rfind("[",0,i):catd.find("]",i)+1]
    print(line[:230]); print()
