feat: update footer with site policies, add CTA retrieval SQL, and refactor block content management

This commit is contained in:
2026-07-17 22:07:01 +07:00
parent 49b8d2b2ea
commit 6af9240c22
59 changed files with 140 additions and 612 deletions
@@ -0,0 +1,18 @@
import os
from bs4 import BeautifulSoup
file_path = "/home/x79/sisvietnamvn_01/sisvietnamvn_Trang chính thức hiện tại/UMass Amherst _ UMass Amherst.html"
with open(file_path, "r", encoding="utf-8") as f:
soup = BeautifulSoup(f, "html.parser")
content_top = soup.find(class_="content-top")
if content_top:
# Let's save it to an artifact directly via python, or just print it and I will grab it.
output_path = "/home/x79/sisvietnamvn_01/sisvietnamvn_main/content_top_snippet.html"
with open(output_path, "w", encoding="utf-8") as f:
f.write(content_top.prettify())
print(f"Extracted content-top to {output_path}")
else:
print("Could not find class='content-top'")