diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-11-15 18:25:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 18:25:54 +0100 |
commit | 9e4a63e74b16c5bf49553ecca5acba5b81ea8db0 (patch) | |
tree | 975f0e8fd8300452f97259821d944f21746492c7 /g4f/gui/server/internet.py | |
parent | Update internet.py (diff) | |
download | gpt4free-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 'g4f/gui/server/internet.py')
-rw-r--r-- | g4f/gui/server/internet.py | 2 |
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", |