Comment by nicbou
Playwright is a great tool for this. There is a helper for writing automations. It's commonly used for automated testing but it's good for controlling a browser with Python scripts in general.
Playwright is a great tool for this. There is a helper for writing automations. It's commonly used for automated testing but it's good for controlling a browser with Python scripts in general.
Playwright is great. Take a look at Stagehand, it's an AI layer built on top of Playwright: https://www.stagehand.dev (It can run locally.)