🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
fix(fetcher): Remove non-keywords arguments
Karim shoair5376c97996b3
diff --git a/scrapling/core/shell.py b/scrapling/core/shell.pyindex 0799496..3e0f1e2 100644--- a/scrapling/core/shell.py+++ b/scrapling/core/shell.py@@ -421,7 +421,7 @@ Type 'exit' or press Ctrl+D to exit.if isinstance(result, (Response, Selector)):self.pages.append(result)if len(self.pages) > 5:- self.pages.pop(0) # Remove oldest item+ self.pages.pop(0) # Remove the oldest item# Update in IPython namespace tooif self.shell:diff --git a/scrapling/engines/static.py b/scrapling/engines/static.pyindex a442002..951659b 100644--- a/scrapling/engines/static.py+++ b/scrapling/engines/static.py@@ -683,8 +683,8 @@ class FetcherSession:class FetcherClient(_SyncSessionLogic):__slots__ = ("__enter__", "__exit__")- def __init__(self, *args, **kwargs):- super().__init__(*args, **kwargs)+ def __init__(self, **kwargs):+ super().__init__(**kwargs)self.__enter__: Any = Noneself.__exit__: Any = Noneself._curl_session: Any = _NO_SESSION@@ -693,8 +693,8 @@ class FetcherClient(_SyncSessionLogic):class AsyncFetcherClient(_ASyncSessionLogic):__slots__ = ("__aenter__", "__aexit__")- def __init__(self, *args, **kwargs):- super().__init__(*args, **kwargs)+ def __init__(self, **kwargs):+ super().__init__(**kwargs)self.__aenter__: Any = Noneself.__aexit__: Any = Noneself._async_curl_session: Any = _NO_SESSION