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

style(fetcher): Move the default UA line

Karim shoair1f34ac22f6e2
diff --git a/scrapling/engines/static.py b/scrapling/engines/static.py
index 7f68bfc..869d56f 100644
--- a/scrapling/engines/static.py
+++ b/scrapling/engines/static.py
@@ -30,10 +30,9 @@ from .toolbelt import (
generate_convincing_referer,
generate_headers,
ResponseFactory,
+ __default_useragent__,
)
-__default_useragent__ = generate_headers(browser_mode=False).get("User-Agent")
-
class FetcherSession:
"""