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(fingerprints): Fixing headers generation for requests

Karim shoair2bdee6000417
diff --git a/scrapling/engines/toolbelt/fingerprints.py b/scrapling/engines/toolbelt/fingerprints.py
index a623039..a074221 100644
--- a/scrapling/engines/toolbelt/fingerprints.py
+++ b/scrapling/engines/toolbelt/fingerprints.py
@@ -53,7 +53,7 @@ def generate_headers(browser_mode: bool = False) -> Dict:
os_name = get_os_name()
browsers = [Browser(name="chrome", min_version=130)]
if not browser_mode:
- os_name = None
+ os_name = ("windows", "macos", "linux")
browsers.extend(
[
Browser(name="firefox", min_version=130),