Menu

Screenshot a list of URLs every week and keep a dated history with Playwright
📰

Screenshot a list of URLs every week and keep a dated history with Playwright

DEV Community: typescript·CaptureBatch·6 days ago
#Bn5ZrXQj
#devtotypescript#devto#dev#await#const
Long article (1262 words) — no AI summary yet.
Reading 0:00
15s threshold

Disclosure: this account belongs to CaptureBatch, a hosted tool for the same job; it is mentioned once, at the end. The guide below works on its own with no account anywhere.

Sometimes you need a picture of the same pages on a regular schedule: client sites before and after each release, competitors' pricing pages, or proof of what a page said on a given date. This guide builds that with Playwright in about 80 lines of TypeScript. It covers desktop and mobile, full-page captures, lazy-loaded images, failures, and a dated folder per page that you can browse later.

What you get

shots/ example.com_pricing/ 2026-11-30-desktop.png 2026-11-30-mobile.png 2026-12-07-desktop.png ...…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.