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

ops: update benchmarks script

Karim shoair1f9eb174145e
diff --git a/benchmarks.py b/benchmarks.py
index 438466e..fcb089c 100644
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -75,7 +75,7 @@ def test_scrapling():
# No need to do `.extract()` like parsel to extract text
# Also, this is faster than `[t.text for t in Selector(large_html, adaptive=False).css('.item')]`
# for obvious reasons, of course.
- return ScraplingSelector(large_html, adaptive=False).css(".item::text")
+ return ScraplingSelector(large_html, adaptive=False).css(".item::text").getall()
@benchmark