# -*- 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"
html = open(os.path.join(BASE, "details", "harvard-data-science.html"), encoding="utf-8").read()
h1 = re.findall(r"<h1>(.*?)</h1>", html)
h2 = re.findall(r"<h2>(.*?)</h2>", html)
print("h1:", h1)
print("h2 数量:", len(h2))
for x in h2: print("  -", x)
kws = ["67,504", "33,752", "Dec 01", "2026-12-01", "TOEFL", "IELTS", "Duolingo", "7.0", "6.5", "GRE", "Optional", "三封推荐信", "$105", "Capstone", "Spotify", "MBTA", "AB/SM", "MS/MBA", "Design Engineering", "stem", "Cambridge"]
for k in kws:
    print(("OK  " if k in html else "MISS"), k)
