# -*- coding: utf-8 -*-
import io, sys, os, re, json
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
t=open("_cornell_bee_app.txt",encoding="utf-8").read()
i=t.find("Students who have studied full-time")
print("豁免句:",t[i:i+300])
for kw in ["Distance","distance","part-time","Part-time","online program","Online program","remote"]:
    k=t.find(kw)
    if k>=0: print(f"[{kw}] ...{t[max(0,k-60):k+100]}...")
idx=open("index_main.html",encoding="utf-8").read()
for pid in ["cornell-ce9af91","bee-meng","Biological and Environmental Engineering"]:
    print(pid, "->", idx.count(pid))
print("占位页存在:", os.path.exists("details/cornell-ce9af91.html"))
