Playwright: My First Steps With the Browser Automation Tool | HackerNoon
In my previous company, I developed a batch job that tracked metrics across social media, such as Twitter, LinkedIn, Mastodon, Bluesky, Reddit, etc. Then I realized I could duplicate it for my own “persona.” The problem is that some media don’t provide an HTTP API for the metrics I want. Here are the metrics I want on LinkedIn: It translates into the following code: from playwright.sync_api import Browser, Locator, Page, sync_playwright with (sync_playwright() as pw):