# -*- coding: utf-8 -*-
import io,sys,re,os
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
BASE=r"D:\work buddy\2026-11-05-14-15-52"
f=os.path.join(BASE,"details","cornell-cc8aeab.html")
t=open(f,encoding="utf-8").read()
print("bytes",len(t.encode("utf-8")))
print("h1",len(re.findall(r"<h1",t)),"h2",len(re.findall(r"<h2",t)))
kws=["Master of Science in Data Science for Public Policy","STEM-designated","41 学分","$62,588","$9,332","$26,628","$110","$580","$3,685",
     "Round 1","Round 2","GRE/GMAT","TOEFL","IELTS","750 词","两封推荐信","视频面试","PUBPOL 5575","PUBPOL 5799","PUBPOL 5390","PUBPOL 5610","PUBPOL 5725","PUBPOL 5880",
     "Brooks Engaged Learning Capstone","Executive MS-DSP","Ithaca","merit scholarship","12 个月"]
missing=[k for k in kws if k not in t]
print("missing:",missing if missing else "无，全部命中")
# 排除口径是否写明
print("排除 Executive:", "Executive MS-DSP" in t)
print("未公布留空声明:", "留空" in t)
