v0.6.3
Added
-
STEALTH_ENABLED— global stealth mode
New Scrapy setting that routes all requests through the stealth engine automatically — no need
to addmeta={"stealth": {...}}on every request. Set once insettings.pyorcustom_settings:STEALTH_ENABLED = True
Per-request opt-out is still supported via
meta={"stealth": False}.
STEALTH_ENABLEDis also read fromspider_openedsocustom_settingson the spider class
takes effect without restarting the crawler process. -
STEALTH_DRIVER— engine driver configurable from Scrapy settings
The default stealth driver ("basic","turbo", or"browser") can now be set globally in
settings.pyorcustom_settingsinstead of per-request:STEALTH_DRIVER = "turbo"
spider_openedreads this setting and applies it toconfig.STEALTH_DRIVERat spider start. -
StealthResponse— engine name in response flags
EveryStealthResponsenow includes the engine driver name in its Scrapyflagslist alongside
the package logger name (e.g.["scrapy-stealth", "turbo"]). The flag appears in Scrapy's
crawl log next to each response line, making it easy to see which engine handled each request.
Fixed
EngineManager.get()—KeyErrorcrash on invalid driver
WhenSTEALTH_DRIVERwas set to a typo (e.g."browsesr") the fallback path also read
config.get("STEALTH_DRIVER"), which returned the same invalid value, causing aKeyError.
The fallback now uses_DEFAULT_DRIVERfromconstants(the package-level safe default),
withconfig.STEALTH_DRIVERpreferred when it is itself valid.