Skip to main content

Browser Sessions Guide

This guide shows how to use Reader’s browser() primitive for full browser automation with anti-bot stealth.

Playwright

Install: npm install playwright-core

Puppeteer

Install: npm install puppeteer-core

Raw CDP (Any Language)

For tools that speak the Chrome DevTools Protocol directly:

Interactive Actions

Click, type, search, and extract results:

CLI

The create command prints a JSON object with sessionId and wsEndpoint, then blocks until Ctrl+C or timeout.

With Proxy

Or use the configured proxy pool:

Notes

  • Each session uses ~300MB memory (separate Chrome process)
  • Default timeout: 5 minutes (timeoutMs: 300000)
  • Sessions are isolated from the scrape/crawl browser pool
  • Always call session.close() when done to release resources