Kaizen Today I Learned by Ville Säävuori

Posts tagged chromium

Fetching JSON With Playwright

I wrote my first project using Playwright, an interesting headless browser API similar to Puppeteer but for all major browsers (Chromium, Firefox and Webkit). My first hurdle was reading a simple JSON response as opposed to a normal HTML page. The docs suggest attaching a listener to all requests and filtering what you want there, but I found the following to be easiest way:

· Read the full article →