🕷️ 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
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
style: using better data structures for constants
Karim shoair6c17bd886e48
diff --git a/scrapling/engines/constants.py b/scrapling/engines/constants.pyindex 926e238..e26c460 100644--- a/scrapling/engines/constants.py+++ b/scrapling/engines/constants.py@@ -1,5 +1,5 @@# Disable loading these resources for speed-DEFAULT_DISABLED_RESOURCES = [+DEFAULT_DISABLED_RESOURCES = {'font','image','media',@@ -10,9 +10,9 @@ DEFAULT_DISABLED_RESOURCES = ['websocket','csp_report','stylesheet',-]+}-DEFAULT_STEALTH_FLAGS = [+DEFAULT_STEALTH_FLAGS = (# Explanation: https://peter.sh/experiments/chromium-command-line-switches/# Generally this will make the browser faster and less detectable'--no-pings',@@ -87,7 +87,7 @@ DEFAULT_STEALTH_FLAGS = ['--enable-features=NetworkService,NetworkServiceInProcess,TrustTokens,TrustTokensAlwaysAllowIssuance','--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4','--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process,TranslateUI,BlinkGenPropertyTrees',-]+)# Defaulting to the docker mode, token doesn't matter in it as it's passed for the containerNSTBROWSER_DEFAULT_QUERY = {