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

Better logic for `Adaptors` `re_first` method

Karim shoair7af75f78a565
diff --git a/scrapling/parser.py b/scrapling/parser.py
index 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 result
return default