(no title)
post_below | 8 days ago
I just finished setting up grocery automation to run on it: agent provides a starter list based on past orders (locally stored or grabbed from store site), all group members can weigh in, add or remove items, agent uses bespoke browser tool to login to store, create the cart using the finalized list (and optionally search for additional request items), validates the cart and (maybe later) places the order for delivery. I haven't implemented the full checkout process yet, not sure if I want the agent to have spending power. As is I just login and finish the last 2 clicks of checkout manually.
Crazy times. It was easy enough to build that if someone hasn't already open sourced something like it, they will shortly.
6ak74rfy|7 days ago
post_below|7 days ago
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