From fcd91a9709b749ccf34455265e445cc07eb5f08f Mon Sep 17 00:00:00 2001 From: Geoff-Robin Date: Tue, 7 Oct 2025 21:51:26 +0530 Subject: [PATCH] Added self as an argument to all previous methods that were static methods --- cognee/tasks/web_scraper/bs4_crawler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cognee/tasks/web_scraper/bs4_crawler.py b/cognee/tasks/web_scraper/bs4_crawler.py index f1efca3d6..568127311 100644 --- a/cognee/tasks/web_scraper/bs4_crawler.py +++ b/cognee/tasks/web_scraper/bs4_crawler.py @@ -138,7 +138,7 @@ class BeautifulSoupCrawler: await self.close() @lru_cache(maxsize=1024) - def _domain_from_url(url: str) -> str: + def _domain_from_url(self, url: str) -> str: """Extract the domain (netloc) from a URL. Args: @@ -153,7 +153,7 @@ class BeautifulSoupCrawler: return url @lru_cache(maxsize=1024) - def _get_domain_root(url: str) -> str: + def _get_domain_root(self, url: str) -> str: """Get the root URL (scheme and netloc) from a URL. Args: @@ -376,7 +376,7 @@ class BeautifulSoupCrawler: ) await asyncio.sleep(backoff) - def _normalize_rule(rule: Union[str, Dict[str, Any]]) -> ExtractionRule: + def _normalize_rule(self, rule: Union[str, Dict[str, Any]]) -> ExtractionRule: """Normalize an extraction rule to an ExtractionRule dataclass. Args: