From 8ccb6f4d771afada7d1c720cba9d09634c7fe641 Mon Sep 17 00:00:00 2001 From: martin legrand Date: Sun, 30 Mar 2025 17:22:35 +0200 Subject: [PATCH] fix : issue with browser --- sources/browser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/browser.py b/sources/browser.py index 2cfe47a..a64e5d9 100644 --- a/sources/browser.py +++ b/sources/browser.py @@ -156,6 +156,7 @@ class Browser: element.decompose() + text = soup.get_text() lines = (line.strip() for line in text.splitlines()) chunks = (phrase.strip() for line in lines for phrase in line.split(" ")) text = "\n".join(chunk for chunk in chunks if chunk and self.is_sentence(chunk))