Karim shoair commited on
Commit
62bd429
·
1 Parent(s): 205b950

fix(cli): Update page object after curl request

Browse files
Files changed (1) hide show
  1. scrapling/core/shell.py +2 -1
scrapling/core/shell.py CHANGED
@@ -455,6 +455,7 @@ Type 'exit' or press Ctrl+D to exit.
455
  delete = self.create_wrapper(Fetcher.delete)
456
  dynamic_fetch = self.create_wrapper(PlayWrightFetcher.fetch)
457
  stealthy_fetch = self.create_wrapper(StealthyFetcher.fetch)
 
458
 
459
  # Create the namespace dictionary
460
  return {
@@ -474,7 +475,7 @@ Type 'exit' or press Ctrl+D to exit.
474
  "pages": self.pages,
475
  "view": show_page_in_browser,
476
  "uncurl": self._curl_parser.parse,
477
- "curl2fetcher": self._curl_parser.convert2fetcher,
478
  "help": self.show_help,
479
  }
480
 
 
455
  delete = self.create_wrapper(Fetcher.delete)
456
  dynamic_fetch = self.create_wrapper(PlayWrightFetcher.fetch)
457
  stealthy_fetch = self.create_wrapper(StealthyFetcher.fetch)
458
+ curl2fetcher = self.create_wrapper(self._curl_parser.convert2fetcher)
459
 
460
  # Create the namespace dictionary
461
  return {
 
475
  "pages": self.pages,
476
  "view": show_page_in_browser,
477
  "uncurl": self._curl_parser.parse,
478
+ "curl2fetcher": curl2fetcher,
479
  "help": self.show_help,
480
  }
481