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

Compatibility fix for Python 3.7

Karim shoair227d52a86bf9
diff --git a/scrapling/utils.py b/scrapling/utils.py
index 3518433..7eea9fa 100644
--- a/scrapling/utils.py
+++ b/scrapling/utils.py
@@ -157,7 +157,7 @@ class _StorageTools:
# return _impl
-@cache
+@cache(None, typed=True)
def clean_spaces(string):
string = string.replace('\t', ' ')
string = re.sub('[\n|\r]', '', string)