# -*- coding: utf-8 -*-
import io, re, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
h = open(r"D:\work buddy\2026-11-05-14-15-52\details\notre-msme.html", encoding="utf-8").read()
print("bytes", len(h))
print("h1:", re.findall(r"<h1>(.*?)</h1>", h))
print("h2:", re.findall(r"<h2>(.*?)</h2>", h))
print("links:", len(re.findall(r'href="https?://', h)))
print("no STEM claim:", "STEM-designated" not in h)
for kw in ["12 月 31", "10 月 15", "30 个学期学分", "Non-thesis", "Thesis", "Fluid Mechanics", "Bioengineering", "Robotics", "Computational Engineering", "Materials, Energy"]:
    print(kw, "=>", kw in h)
