TLDR Web Dev · ARTICLES & TUTORIALS
WEB SCRAPING WITH PLAYWRIGHT
Summary from the TLDR Web Dev newsletter
Playwright is a tool often used for end-to-end testing, but can be used for web scraping dynamic websites. Unlike other libraries, Playwright opens websites in a real browser, allowing it to scrape content rendered by JavaScript. This article walks through an example of scraping YouTube for video titles, URLs, and the number of likes, while also navigating through multiple pages at a time.