Agent Browser connection
Connect Puppeteer to the authenticated Scrapeless browser endpoint over CDP.
Use Puppeteer with a remote Scrapeless browser session. Connect through the WebSocket endpoint and keep navigation and extraction in your script.
Puppeteer is a JavaScript library for controlling a browser. Use its page APIs to navigate websites, interact with elements, extract information, and capture screenshots.
Puppeteer connects to Scrapeless Agent Browser over CDP. These capabilities belong to the remote browser service; your framework keeps control of the task.
Connect Puppeteer to the authenticated Scrapeless browser endpoint over CDP.
Scrapeless runs the browser and JavaScript; Puppeteer controls page navigation and the content your task extracts.
Configure the browser session’s supported proxy options, such as its proxy country, on the Scrapeless connection.
Create a remote session for the task, control its lifetime, and close it when your work finishes.
Inspect an active Scrapeless browser session while your Puppeteer task runs.
Enable session recording when needed and review the recorded run after the browser task.
Pass the Scrapeless WebSocket endpoint to Puppeteer. Create a page, navigate, and extract content using your existing Puppeteer code.
Puppeteer keeps its own navigation and extraction code.
A Scrapeless API key and authenticated browser endpoint. Node.js with puppeteer-core. A known public page for the first test.
Install puppeteer-core and set SCRAPELESS_API_KEY in the terminal you will use to run the example.
Ready to get started? Create your Scrapeless account →
Build the authenticated Scrapeless WebSocket URL and connect to the remote browser. Step 03 includes the complete script.
Run node first-page-puppeteer.cjs. For example.com, expect Example Domain in the title and heading. The script closes the browser after the request.
Open a page such as example.com through Scrapeless Agent Browser. Connect Puppeteer over CDP, run your page-reading logic, and inspect the returned content before passing it to your application.
{
"url": "https://example.com",
"html": "<h1>Example Domain</h1>\n<p>This domain is for use in documentation examples.</p>"
}Bring search, scraping, and browser automation into the tools you already use.