3 ms·
Another tip, there are a few browser extensions that can record your interactions and generate a playwright script. Here's one: https://chrome.google.com/webst
by m_ke 5y ago
Another tip, there are a few browser extensions that can record your interactions and generate a playwright script.
Here's one: https://chrome.google.com/webstore/detail/headless-recorder/djeegiggegleadkkbgopoonhjimgehda?hl=en https://chrome.google.com/webstore/detail/headless-recorder/...
- sidharthv 5y agoIf you don't want to install another extension, Playwright has built in support for recording. npx playwright codegen wikipedia.org https://playwright.dev/docs/next/codegen https://playwright.dev/docs/next/codegen
- jrochkind1 5y agoI'm not familiar with "playwright", it doesn't seem to be mentioned in OP either. When I google, I see it advertised as a "testing" tool. Can I also use it for scraping? Where would I learn more about doing so?
- rmetzler 5y agoPlaywright is similar to Puppeteer, but can use different browsers not only Chrome.
- xnyan 5y agoPlaywright is essentially a headless chrome, firefox, and webkit browser with a nice API that's intended for automation/scraping. It's far more heavy than something like curl, but it has all the capabilities of any browser you want (not just chrome as with puppeteer) and makes stuff like interacting with javascript a breeze. It's similar to Google's puppeteer, but in my opinion even with chrome much more pleasant and productive. Microsoft's best developer tool IMO, saves me tons of time.