From 9e4a63e74b16c5bf49553ecca5acba5b81ea8db0 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Fri, 15 Nov 2024 18:25:54 +0100 Subject: Update internet.py --- g4f/gui/server/internet.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py index 8dea28b1..9d15878b 100644 --- a/g4f/gui/server/internet.py +++ b/g4f/gui/server/internet.py @@ -46,8 +46,6 @@ class SearchResultEntry(): def scrape_text(html: str, max_words: int = None) -> str: soup = BeautifulSoup(html, "html.parser") - for exclude in soup(["script", "style"]): - exclude.extract() for selector in [ "main", ".main-content-wrapper", -- cgit v1.2.3