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

fix(requests): return the cached fingerprint on second call

Karim shoair5dbbd84b3dc4
diff --git a/scrapling/spiders/request.py b/scrapling/spiders/request.py
index 977e8e8..3351100 100644
--- a/scrapling/spiders/request.py
+++ b/scrapling/spiders/request.py
@@ -71,6 +71,8 @@ class Request:
Caches the result in self._fp after first computation.
"""
+ if self._fp is not None:
+ return self._fp
post_data = self._session_kwargs.get("data", {})
body = b""