0:00 / 0:00

Scrape The Web And Automate Your Browser

From the course: Agentic AI For Founders & Senior Operators

Give the agent one prompt, such as finding Anthropic's upcoming webinars, listing them in a table and registering you for the one you pick. It finds the sessions, then uses Playwright to open a headless browser and fill in the registration form, stopping before it submits so you can check the details. In our run it flagged that the form wanted a business email, switched to the work address when asked and finished the registration.

Transcript

Now, what we're going to do is, we're going to execute this prompt and we'll execute it in both simultaneously. So we'll say, "Find Anthropic's upcoming webinars and workshops. Show me the next session of each in a table with the date and time in IST. Then register me for the one I pick." So I enter that in my CLI and I'm also going to enter that in my desktop. And first, we look at what the CLI says. Okay, so it ran and it came back to us and it said, "I've compiled a list of nine upcoming workshops with three virtual ones that fit your hours, plus notes on repeat dates. Next, I'll show you the registration form with your details masked." So I say, "Okay, you know what? I want to do the Claude Code workshop." So I've asked it now to register me for that workshop. So it's going to do that. And so what you'll see here is it says, "I'm filling the form in the headless browser now and I'll stop before submitting," which is basically, it's calling Playwright. Now, it may look a little bit different for you. I set up my MCP for Playwright differently. I don't like the pop-up browser window. If that's something that you're interested in exploring, let me know and just come to a Thursday session, and we can go through those together. Okay, so it says, "I filled out the registration form with your details. This is who you are, founder, but haven't submitted. The form requests a business email, but I used your personal address, and submitting." So I said, "Use a Luminary email." Okay, so now it's going to go and find it and it's got that. It's anonymized it and it will actually go ahead and register me and let's see what happens.

Okay, so it went through a few steps and it said, "You are registered."