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: small fix for fetcher

Karim shoairecef7514680a
diff --git a/scrapling/engines/static.py b/scrapling/engines/static.py
index a81dd88..8024692 100644
--- a/scrapling/engines/static.py
+++ b/scrapling/engines/static.py
@@ -146,7 +146,15 @@ class FetcherSession:
),
"cert": self.get_with_precedence(kwargs, "cert", self.default_cert),
"impersonate": impersonate,
- **kwargs, # Add any remaining parameters (after all known ones are popped)
+ **{
+ k: v
+ for k, v in kwargs.items()
+ if v
+ not in (
+ _UNSET,
+ None,
+ )
+ }, # Add any remaining parameters (after all known ones are popped)
}
)
return request_args