From 8f3b2092c287985a8fc09d516a969608081e0b61 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Tue, 29 Apr 2025 03:14:41 +0300 Subject: [PATCH] fix(cli): Update page object after curl request --- scrapling/core/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrapling/core/shell.py b/scrapling/core/shell.py index 1b15aaa..663a168 100644 --- a/scrapling/core/shell.py +++ b/scrapling/core/shell.py @@ -455,6 +455,7 @@ Type 'exit' or press Ctrl+D to exit. delete = self.create_wrapper(Fetcher.delete) dynamic_fetch = self.create_wrapper(PlayWrightFetcher.fetch) stealthy_fetch = self.create_wrapper(StealthyFetcher.fetch) + curl2fetcher = self.create_wrapper(self._curl_parser.convert2fetcher) # Create the namespace dictionary return { @@ -474,7 +475,7 @@ Type 'exit' or press Ctrl+D to exit. "pages": self.pages, "view": show_page_in_browser, "uncurl": self._curl_parser.parse, - "curl2fetcher": self._curl_parser.convert2fetcher, + "curl2fetcher": curl2fetcher, "help": self.show_help, }