Hacker News new | ask | show | jobs
by bdcravens 1179 days ago
If you'd be standing up CDP to grab the cookies, you'd probably use Puppeteer or Playwright instead of Selenium.
1 comments

Appreciate the recommendation, I just used whatever python had to offer, Puppeteer looks promising though!
Using the tools at hand is often the best approach. That said, I've spent most of the last 13 years of my career automating browsers. For years, I used Selenium with a variety of libraries. After switching to Puppeteer/Playwright, I have zero interest in going back lol. Playwright actually has first party Python support. (Puppeteer has a port called Pyppeteer, but it's no longer maintained and the author recommends using Playwright)

https://playwright.dev/python/

I second Playwright, it's amazing.
Third.