How to Scrape JavaScript-Rendered Pages with Claude
Scrape JavaScript-Rendered Pages with Claude and ToolRouter. Extract content from SPAs and dynamic sites that block standard HTTP scrapers.
ToolStealth ScraperUse Claude with Stealth Scraper to pull content from JavaScript-heavy sites and immediately analyze or transform what comes back. Claude handles the extraction request and then applies logic to the returned content — parsing structured data from rendered HTML, summarizing page content, or identifying specific fields to extract.
Connect ToolRouter to Claude
1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouterURL
https://api.toolrouter.com/mcp3Let Claude set you up Open Claude
Steps
Once connected (see setup above), use the Stealth Scraper tool:
- Provide the URL of the JavaScript-rendered page you want to scrape.
- Ask Claude to use `stealth-scraper` with `stealth_scrape` to load and extract the page content.
- Ask Claude to identify the specific data fields you need from the rendered content.
- Have Claude return the extracted data in your preferred format — JSON, markdown table, or plain text.
Example Prompt
Try this with Claude using the Stealth Scraper tool
Use stealth-scraper to scrape this JavaScript-rendered product page: https://example.com/products/widget. Extract the product name, price, availability status, and all specifications listed on the page. Return the data as a JSON object.
Tips
- Specify what you want extracted rather than asking for the raw HTML — Claude can parse and structure the data from the rendered content.
- For pages with lazy-loaded content, mention that you need all sections to load before extraction.
- If the page requires scrolling to reveal content, ask Claude to note this so the right extraction approach is used.