🕷️ 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
docs: clarify stealth init script visibility
mehmet turac35a83d38c767
diff --git a/docs/fetching/stealthy.md b/docs/fetching/stealthy.mdindex ca9c707..293fbc6 100644--- a/docs/fetching/stealthy.md+++ b/docs/fetching/stealthy.md@@ -86,6 +86,7 @@ In session classes, all these arguments can be set globally for the session. Sti2. The `disable_resources` option made requests ~25% faster in my tests for some websites and can help save your proxy usage, but be careful with it, as it can cause some websites to never finish loading.3. The `google_search` argument is enabled by default for all requests, setting the referer to `https://www.google.com/`. If used together with `extra_headers`, it takes priority over the referer set there.4. If you didn't set a user agent and enabled headless mode, the fetcher will generate a real user agent for the same browser version and use it. If you didn't set a user agent and didn't enable headless mode, the fetcher will use the browser's default user agent, which is the same as in standard browsers in the latest versions.+ 5. `init_script` is registered with the browser context, so it runs when pages are created. Stealthy mode uses Patchright's isolated execution context by default; if your `page_action` needs to read globals that the script places on `window`, call `page.evaluate(..., isolated_context=False)` from the action.## ExamplesIt's easier to understand with examples, so we will now review most of the arguments individually. Since it's the same class as the [DynamicFetcher](dynamic.md#introduction), you can refer to that page for more examples, as we won't repeat all the examples from there.@@ -346,4 +347,4 @@ Use StealthyFetcher when:- Full JavaScript support needed- Want automatic stealth features- Need browser automation-- Dealing with Cloudflare protection\ No newline at end of file+- Dealing with Cloudflare protection