shot-scraper 1.12

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Teams automating web screenshots and scraping can now cut file sizes substantially by outputting WebP instead of JPEG or PNG from shot-scraper.

Read this as

shot-scraper is a free command-line tool that takes screenshots of web pages, records video demos, and scrapes sites using JavaScript. Version 1.12 adds support for the WebP image format, which usually produces much smaller files than JPEG or PNG. An optional --quality setting controls the trade-off between file size and fidelity. This matters for developers who automate screenshots at scale.

Simon Willison released shot-scraper 1.12, a minor update to his open-source web automation tool that adds WebP screenshot output with a --quality flag. WebP files are, in his experience, almost always significantly smaller than JPEG or PNG equivalents, which can reduce storage and bandwidth costs in automated pipelines. No support, pricing or enterprise considerations are mentioned; it is a free tool aimed at developers.

shot-scraper 1.12 adds WebP output for the screenshot subcommand, e.g. 'shot-scraper https://simonwillison.net -o screenshot.webp --quality 80'. Without --quality the WebP is lossless; with it, encoding is lossy at the specified quality. The author reports WebP is almost always significantly smaller than JPEG or PNG equivalents, with examples in the pull request. He shipped it to generate screenshots for his commit-rewriter tool.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

shot-scraper WebP JPEG PNG Pyodide Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading