A tested Python recipe for evidence-grade web page archives. Save the raw HTML and headers, a full-page PNG and a PDF, hash everything into a manifest, get an RFC 3161 timestamp, and verify it all later with openssl.
Build a small visual regression check in Python. Capture full-page screenshots with an API, diff them against baselines with Pillow, ignore dynamic regions and fail on real layout changes. Tested, with the threshold mistake we hit and fixed.
Generate website thumbnails and link-preview images from URLs with a screenshot API and Pillow. A tested Python script that batches five URLs per call, crops to three sizes, caches results and handles dead sites, plus the meta tags to use them.
How to capture website screenshots from code without running your own headless browser fleet. Working Python and Node.js examples for full-page, mobile, retina and PDF captures, late-loading pages, and a batch script with retries.