DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to scrape JavaScript-heavy pages with a headless browser with Crawlee Python

Use PlaywrightCrawler for pages that only render content in the browser.

Short answer: Install with python -m pip install 'crawlee[all]'; then install browsers with playwright install; copy the PlaywrightCrawler example and read data with context.page. All steps.

  • Data and analytics
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

data. Follow the target site's terms of service; do not use it to get around access controls.

Who it is forA developer extracting data from a dynamic web app.

The problemPlain HTTP fetches miss content rendered by JavaScript.

The outcomeExtracted data from fully rendered pages.

What you need first

  • Python with pip, or uv for the CLI
  • Playwright browsers for browser crawling
  • Respect each site's terms and robots rules

Steps

  1. Install with python -m pip install 'crawlee[all]'
  2. Install browsers with playwright install
  3. Copy the PlaywrightCrawler example and read data with context.page
  4. Run it and check the stored results

Prompt for your agent

Using apify/crawlee-python, run `playwright install`, then write a PlaywrightCrawler that opens <my dashboard URL list>, reads the rendered page title and one table, and saves them with push_data.

Caveat. This card is written from the apify/crawlee-python README, not from a test run by Deduped. Before you start, make sure you have Python with pip, or uv for the CLI. Check the repo for newer instructions before you rely on these steps.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for apify/crawlee-python and "Scrape JavaScript-heavy pages with a headless browser"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer