Comment

Comment by post_below

The browser is very straightforward, about 300 lines implementing all of the various actions you'd want an agent to have access to in puppeteer:

const puppeteer = require('puppeteer');

const browser = await puppeteer.launch();

const page = await browser.newPage();

await page.goto('https://example.com');

Session persistence is accomplished by storing the WebSocket endpoint between calls.

More:

https://pptr.dev/guides/browser-management

parent post_below 8 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton