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(shell): Fix parsing curl `--data-raw`

Karim shoair504ecdf7dc73
diff --git a/scrapling/core/shell.py b/scrapling/core/shell.py
index 58ec258..1bd67ea 100644
--- a/scrapling/core/shell.py
+++ b/scrapling/core/shell.py
@@ -201,7 +201,7 @@ class CurlParser:
data_payload = parsed_args.data_binary # Fallback to string
elif parsed_args.data_raw is not None:
- data_payload = parsed_args.data_raw
+ data_payload = parsed_args.data_raw.lstrip("$")
elif parsed_args.data is not None:
data_payload = parsed_args.data