File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5
5
from minify_html import minify
6
6
from urllib .parse import urljoin
7
7
8
+
8
9
def cleanup_html (html_content : str , base_url : str ) -> str :
9
10
"""
10
11
Processes HTML content by removing unnecessary tags, minifying the HTML, and extracting the title and body content.
@@ -45,9 +46,6 @@ def cleanup_html(html_content: str, base_url: str) -> str:
45
46
if body_content :
46
47
# Minify the HTML within the body tag
47
48
minimized_body = minify (str (body_content ))
48
- print ("Came here" )
49
49
return "Title: " + title + ", Body: " + minimized_body + ", Links: " + str (link_urls )
50
50
51
-
52
- print ("No Came here" )
53
- return "Title: " + title + ", Body: No body content found" + ", Links: " + str (link_urls )
51
+ return "Title: " + title + ", Body: No body content found" + ", Links: " + str (link_urls )
You can’t perform that action at this time.
0 commit comments