Shot-scraper

Latest version: v1.4

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

Scan your dependencies

Page 1 of 5

1.4

- New `--auth-username x --auth-password y` options for each `shot-scraper` command, allowing a username and password to be set for HTTP Basic authentication. [140](https://github.com/simonw/shot-scraper/issues/140)
- `shot-scraper URL --interactive` mode now respects the `-w` and `-h` arguments setting the size of the browser viewport. Thanks, [mhalle](https://github.com/mhalle). [#128](https://github.com/simonw/shot-scraper/issues/128)
- New `--scale-factor` option for setting scale factors other than 2 (for retina). Thanks, [Niel Thiart](https://github.com/nielthiart). [#136](https://github.com/simonw/shot-scraper/issues/136)
- New `--browser-arg` option for passing extra browser arguments (such as `--browser-args "--font-render-hinting=none"`) through to the underlying browser. Thanks, [Niel Thiart](https://github.com/nielthiart). [#137](https://github.com/simonw/shot-scraper/issues/137)

1.3

- New `--bypass-csp` option for bypassing any Content Security Policy on the page that prevents executing further JavaScript. Thanks, [Brenton Cleeland](https://github.com/sesh). [#116](https://github.com/simonw/shot-scraper/pull/116)
- Screenshots taken using `shot-scraper --interactive $URL` - which allows you to interact with the page in a browser window and then hit `<enter>` to take the screenshot - it no longer reloads the page before taking the shot (which ignored your activity). [125](https://github.com/simonw/shot-scraper/issues/125)
- Improved accessibility of [documentation](https://shot-scraper.datasette.io). Thanks, [Paolo Melchiorre](https://github.com/pauloxnet). [#120](https://github.com/simonw/shot-scraper/pull/120)

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)

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.