Scrapy, a fast high-level web crawling & scraping framework for Python.
fix: regex
Jalil SA69f96b9e96b1
diff --git a/scrapy/utils/curl.py b/scrapy/utils/curl.pyindex 5e095f933..b873d2bdf 100644--- a/scrapy/utils/curl.py+++ b/scrapy/utils/curl.py@@ -11,7 +11,7 @@ from w3lib.http import basic_auth_headerclass DataAction(argparse.Action):def __call__(self, parser, namespace, values, option_string=None):value = str(values).encode("utf-8").decode("utf-8")- if items := re.findall(r"{.+}", value):+ if items := re.findall(r"\$(.+)", value):value = items[0]setattr(namespace, self.dest, value)