summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-15 18:25:54 +0100
committerGitHub <noreply@github.com>2024-11-15 18:25:54 +0100
commit9e4a63e74b16c5bf49553ecca5acba5b81ea8db0 (patch)
tree975f0e8fd8300452f97259821d944f21746492c7
parentUpdate internet.py (diff)
downloadgpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.tar
gpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.tar.gz
gpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.tar.bz2
gpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.tar.lz
gpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.tar.xz
gpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.tar.zst
gpt4free-9e4a63e74b16c5bf49553ecca5acba5b81ea8db0.zip
Diffstat (limited to '')
-rw-r--r--g4f/gui/server/internet.py2
1 files changed, 0 insertions, 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",