by tomjen3 · 1y ago · 0 comments
Increasingly I want to stop spending time on twitter, but it’s also where the AI news drops first - and I can’t just scrape the data without being logged in.
If there was a way to have the ai go ahead and gather the data for me, that would be great.
--remote-debugging-port=9222
Then connect via CDP in Playwright like this:
const browser = await chromium.connectOverCDP('http://localhost:9222');
Speaking of implementation, i don’t mind if a browser extension forward cookies from my browser to the automation (privacy and security is an issue of course, and i’d ideally want the cookies to not leave my device, but personally i’m okay with some trade off).