stealth_scrape
Bypass anti-bot protections to scrape content from protected websites using a stealth browser with JavaScript rendering.
Instructions
Scrape a URL using a stealth browser that bypasses anti-bot protections.
Uses scrapling's StealthyFetcher with Patchright (hardened Playwright) to evade
Cloudflare, DataDome, and similar anti-bot systems. Much slower than crawl_url
but works on protected sites.
Requires browser binaries: run 'scrapling install' once before first use.
When to use:
- crawl_url returns a Cloudflare challenge page or empty content
- The target site blocks automated requests
- JavaScript rendering is required for the content to appear
- You need to wait for a specific element to load
Examples:
- stealth_scrape("https://protected-site.com/pricing")
- stealth_scrape("https://spa-app.com/data", wait_selector=".results-table")Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| reasoning | Yes | ||
| max_chars | No | ||
| wait_selector | No | ||
| solve_cloudflare | No | ||
| headless | No | ||
| country | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |