feat: initial commit for Blog Expert multi-agent system

This commit is contained in:
2026-10-16 11:59:15 +05:30
commit 1f952ded52
79 changed files with 9156 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
"""
html_cleaner.py
Removes unnecessary HTML.
"""
from bs4 import BeautifulSoup
REMOVE_TAGS = [
"script",
"style",
"svg",
"iframe",
"noscript",
"footer",
"header",
"nav",
"aside"
]
def clean_html(html: str):
soup = BeautifulSoup(
html,
"lxml"
)
for tag in REMOVE_TAGS:
for item in soup.find_all(tag):
item.decompose()
return str(soup)