Fix some pages not displaying any content

Signed-off-by: Skylar "The Cobra" Widulski <>
This commit is contained in:
Skylar "The Cobra" Widulski 2024-01-19 08:54:41 -05:00
parent a29d931abb
commit b33e919a87
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,8 @@ def fact_check(path):
article = soup.find(attrs={"id": ["article-content"]})
rating = copy(article.find(attrs={"id": ["fact_check_rating_container"]}))
for div in"div"): div.decompose()
for div in"div.snopesad"): div.decompose()
for div in"div"): del div["style"]
for script in"script"): script.decompose()
if article.find("section") != None: