# -*- coding: utf-8 -*-
import io, sys, re, html
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
BASE = r"D:\work buddy\2026-11-05-14-15-52"
h = open(BASE + r"_mae_degree.html", encoding="utf-8").read()
body = re.sub(r"<script.*?</script>", " ", h, flags=re.S)
body = re.sub(r"<style.*?</style>", " ", body, flags=re.S)
body = html.unescape(re.sub(r"<[^>]+>", " ", body))
body = re.sub(r"\s+", " ", body).strip()
print(body[6000:10500])
