🕷️ 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
Better logic for `Adaptors` `re_first` method
Karim shoair7af75f78a565
diff --git a/scrapling/parser.py b/scrapling/parser.pyindex 52d9bcf..b58e319 100644--- a/scrapling/parser.py+++ b/scrapling/parser.py@@ -927,8 +927,7 @@ class Adaptors(List[Adaptor]):"""for n in self:- result = n.re_first(regex, None, replace_entities)- if result:+ for result in n.re(regex, replace_entities):return resultreturn default