Shot-scraper

Latest version: v1.5

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

Scan your dependencies

Page 2 of 5

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)

0.16

- Fixed error message displayed when attempting to use `--log-requests` on a page that includes a redirect. [90](https://github.com/simonw/shot-scraper/issues/90)
- `--log-requests` output now includes a `"status": 200` field indicating the HTTP status code returned by that response.

0.15.1

- Fix error message shown when `--log-requests` tries to log a request with an unknown response size. [89](https://github.com/simonw/shot-scraper/issues/89)

0.15

- New [--log-requests option](https://shot-scraper.datasette.io/en/stable/screenshots.html#logging-all-requests) for logging out newline-delimited JSON showing all requests made while rendering a page, including image and asset loads. [88](https://github.com/simonw/shot-scraper/issues/88)
- New [shot-scraper pdf](https://shot-scraper.datasette.io/en/stable/pdf.html) formatting options: `--format`, `--width`, `--height`, `--scale` and `--print-background`. Thanks, Eddie Chapman. [#87](https://github.com/simonw/shot-scraper/pull/87)
- Removed `-h` shortcut for help - use `--help` instead. `-h` was clashing with the shorter version of `--height`. Thanks, Matthew Bafford. [84](https://github.com/simonw/shot-scraper/pull/84)

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.