🕷️ 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
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
fix(parser): Improve selectors `re` function
Karim shoairb197f8a5f99e
diff --git a/scrapling/parser.py b/scrapling/parser.pyindex 4fb510c..6260988 100644--- a/scrapling/parser.py+++ b/scrapling/parser.py@@ -1259,7 +1259,7 @@ class Selectors(List[Selector])::param clean_match: if enabled, this will ignore all whitespaces and consecutive spaces while matching:param case_sensitive: if disabled, the function will set the regex to ignore the letters case while compiling it"""- results = [n.text.re(regex, replace_entities, clean_match, case_sensitive) for n in self]+ results = [n.re(regex, replace_entities, clean_match, case_sensitive) for n in self]return TextHandlers(flatten(results))def re_first(