Shot-scraper

Latest version: v1.8

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.2

- New `--omit-background` option to the `shot` command to optionally create transparent PNGs. Thanks, Ben Welsh. [108](https://github.com/simonw/shot-scraper/issues/108)
- Fixed bug that caused `shot-scraper` to fail to take screenshots on Windows. Thanks, Omer Rosenbaum. [104](https://github.com/simonw/shot-scraper/pull/104)
- New `--silent` option for the `shot`, `multi`, `pdf` and `html` commands, to disable the default console output. [107](https://github.com/simonw/shot-scraper/issues/107)

Full documentation: https://shot-scraper.datasette.io/

1.1.1

- Deprecated the `shot-scraper multi --fail-on-error` option in favor of the new `--fail` option. `--fail-on-error` will continue to work until `shot-scraper` 2.0 (should that ever be released), but is no longer displayed in the `--help` menu or documentation. [103](https://github.com/simonw/shot-scraper/issues/103)

1.1

- New `--log-console` option for logging the output of calls to `console.log()` to standard error. [101](https://github.com/simonw/shot-scraper/issues/101)
- New `--skip` and `--fail` options to specify what should happen if an HTTP 4xx or 5xx error is encountered while trying to load the page. `--skip` will ignore the error and either exit cleanly or move on to the next screenshot (in the case of `multi`). `--fail` will cause the tool to return a non-zero exit code, useful for running in CI environments. [102](https://github.com/simonw/shot-scraper/issues/102)

1.0.1

- [shot-scraper.datasette.io](https://shot-scraper.datasette.io/) homepage now includes an example screenshot. [#97](https://github.com/simonw/shot-scraper/issues/97)

1.0

- New `shot-scraper html URL` command ([documented here](https://shot-scraper.datasette.io/en/stable/html.html)) for outputting the final HTML of a page, after JavaScript has been executed. [#96](https://github.com/simonw/shot-scraper/issues/96)
- `shot-scraper javascript` has a new `-r/--raw` option for outputting the result of the JavaScript expression as a raw string rather than JSON encoded ([shot-scraper javascript documentation](https://shot-scraper.datasette.io/en/stable/javascript.html)). [#95](https://github.com/simonw/shot-scraper/issues/95)
- Tutorial: [Automating screenshots for the Datasette documentation using shot-scraper](https://simonwillison.net/2022/Oct/14/automating-screenshots/).

0.17

- New `shot-scraper multi -o` option for specifying a subset of one or more output files to execute that are defined in the YAML. This is useful for testing a larger `shots.yml` file without re-taking every screenshot every time the command is run. [94](https://github.com/simonw/shot-scraper/issues/94)

Page 2 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.