# -*- coding: utf-8 -*-
import io, sys, os, re, html
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
for key in ["cmu-c2ee442.html","cmu-c8e8fa0.html"]:
    h=open("_cmu10_"+key,encoding="utf-8").read()
    links=re.findall(r'href="([^"]+)"',h)
    links=[html.unescape(x) for x in links]
    print("====",key)
    seen=set()
    for x in links:
        if re.search(r"(admission|apply|curriculum|tuition|requirement|handbook|deadline|faq|program|master|mscs|mscf|academic)",x,re.I) and x not in seen and not x.startswith("#"):
            seen.add(x); print(" ",x[:95])
