From e2bb1ff75f594cb7731354e9a9a5da42e1017fe0 Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Sun, 10 May 2026 21:12:59 +0200 Subject: [PATCH] fix: restore missing _extract_urls_from_text method in SocialDataExtractor --- src/ingestion_twikit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ingestion_twikit.py b/src/ingestion_twikit.py index 1f3b3877..64f22cb6 100644 --- a/src/ingestion_twikit.py +++ b/src/ingestion_twikit.py @@ -26,6 +26,10 @@ class SocialDataExtractor: print(msg) self.diagnostics.append(msg) + def _extract_urls_from_text(self, text: str) -> list[str]: + url_pattern = re.compile(r'https?://[^\s<>\"]+|www\.[^\s<>\"]+') + return url_pattern.findall(text) + async def _authenticate(self) -> bool: try: # IP Check independiente