# -*- 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")
g=open("_cornell_bee_guide.html",encoding="utf-8").read()
links=sorted(set(re.findall(r'href="([^"]+)"',g)))
for l in links:
    if any(x in l.lower() for x in ["admission","tuition","financial","language","english","toefl","ielts","fee","requirement","process","graduate-school","gradschool"]):
        print(l)
print("\n=== guide 全文语言/费用上下文 ===")
t=open("_cornell_bee_guide.txt",encoding="utf-8").read()
for kw in ["application fee","$","tuition","financial aid","TOEFL","IELTS","English","minimum score","recommendation","GRE"]:
    m=t.lower().find(kw.lower())
    if m>=0: print(f"[{kw}] ...{t[max(0,m-60):m+140]}...")
