Skip to content

🕷️ 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

fix(cli): Update page object after curl request

Karim shoair8f3b2092c287
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,
}