Karim shoair commited on
Commit ·
3f07d06
1
Parent(s): c908f33
fix(fetcher): Remove non-keywords arguments
Browse files- scrapling/core/shell.py +1 -1
- scrapling/engines/static.py +4 -4
scrapling/core/shell.py
CHANGED
|
@@ -421,7 +421,7 @@ Type 'exit' or press Ctrl+D to exit.
|
|
| 421 |
if isinstance(result, (Response, Selector)):
|
| 422 |
self.pages.append(result)
|
| 423 |
if len(self.pages) > 5:
|
| 424 |
-
self.pages.pop(0) # Remove oldest item
|
| 425 |
|
| 426 |
# Update in IPython namespace too
|
| 427 |
if self.shell:
|
|
|
|
| 421 |
if isinstance(result, (Response, Selector)):
|
| 422 |
self.pages.append(result)
|
| 423 |
if len(self.pages) > 5:
|
| 424 |
+
self.pages.pop(0) # Remove the oldest item
|
| 425 |
|
| 426 |
# Update in IPython namespace too
|
| 427 |
if self.shell:
|
scrapling/engines/static.py
CHANGED
|
@@ -683,8 +683,8 @@ class FetcherSession:
|
|
| 683 |
class FetcherClient(_SyncSessionLogic):
|
| 684 |
__slots__ = ("__enter__", "__exit__")
|
| 685 |
|
| 686 |
-
def __init__(self, *
|
| 687 |
-
super().__init__(*
|
| 688 |
self.__enter__: Any = None
|
| 689 |
self.__exit__: Any = None
|
| 690 |
self._curl_session: Any = _NO_SESSION
|
|
@@ -693,8 +693,8 @@ class FetcherClient(_SyncSessionLogic):
|
|
| 693 |
class AsyncFetcherClient(_ASyncSessionLogic):
|
| 694 |
__slots__ = ("__aenter__", "__aexit__")
|
| 695 |
|
| 696 |
-
def __init__(self, *
|
| 697 |
-
super().__init__(*
|
| 698 |
self.__aenter__: Any = None
|
| 699 |
self.__aexit__: Any = None
|
| 700 |
self._async_curl_session: Any = _NO_SESSION
|
|
|
|
| 683 |
class FetcherClient(_SyncSessionLogic):
|
| 684 |
__slots__ = ("__enter__", "__exit__")
|
| 685 |
|
| 686 |
+
def __init__(self, **kwargs):
|
| 687 |
+
super().__init__(**kwargs)
|
| 688 |
self.__enter__: Any = None
|
| 689 |
self.__exit__: Any = None
|
| 690 |
self._curl_session: Any = _NO_SESSION
|
|
|
|
| 693 |
class AsyncFetcherClient(_ASyncSessionLogic):
|
| 694 |
__slots__ = ("__aenter__", "__aexit__")
|
| 695 |
|
| 696 |
+
def __init__(self, **kwargs):
|
| 697 |
+
super().__init__(**kwargs)
|
| 698 |
self.__aenter__: Any = None
|
| 699 |
self.__aexit__: Any = None
|
| 700 |
self._async_curl_session: Any = _NO_SESSION
|