Shot-scraper

Latest version: v1.5

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

Scan your dependencies

Page 5 of 5

0.5

- New `shot-scraper pdf` command for creating a PDF export of a web page. [24](https://github.com/simonw/shot-scraper/issues/24)
- `shot-scraper accessibility --javascript` option for executing custom JavaScript before taking the accessibility snapshot. [23](https://github.com/simonw/shot-scraper/issues/23)
- `shot-scraper accessibility -o filename.json` option. [25](https://github.com/simonw/shot-scraper/issues/25)
- README demos section now links to `newshomepages` Twitter bot by [palewire](https://github.com/palewire)
- README now includes tips on executing JavaScript. [20](https://github.com/simonw/shot-scraper/issues/20)
- README now includes the `--help` output of the various commands.

0.4

- Added `shot-scraper accessibility URL` command, which dumps out a JSON copy of the Chromium accessibility tree for the page. [22](https://github.com/simonw/shot-scraper/issues/22)
- Fixed error in the `--help` output for the `shot-scraper multi` command.

0.3

- Added a live demo, in the [shot-scraper-demo](https://github.com/simonw/shot-scraper-demo) repository. [#14](https://github.com/simonw/shot-scraper/issuse/14)
- New `--quality 80` option for outputting smaller JPEG images with the specified quality. [15](https://github.com/simonw/shot-scraper/issuse/15)
- New `--wait 2000` option for waiting the specified number of milliseconds before taking the screenshot. [16](https://github.com/simonw/shot-scraper/issuse/16)

0.2

- `shot-scraper --selector SELECTOR` option to specify an element on the page using a CSS selector and take a screenshot of just that element. [8](https://github.com/simonw/shot-scraper/issues/8)
- `selector: ...` key in YAML file to specify an element by CSS selector.
- `--javascript SCRIPT` option to specify custom JavaScript to be executed after the page has loaded but before the screenshot is taken. [12](https://github.com/simonw/shot-scraper/issues/12)
- `javascript:` key in YAML to specify JavaScript to execute.
- `--width` and `--height` options to set the width and height of the browser window used for the screenshot. If a height is specified, the resulting screenshot will be that height rather than being the full height of the page. [13](https://github.com/simonw/shot-scraper/issues/13)
- Equivalent `width:` and `height:` keys in the YAML configuration.

0.1

- Switched from npm Playwright to [Python Playwright](https://pypi.org/project/playwright/). [#3](https://github.com/simonw/shot-scraper/issues/3)
- New `shot-scraper install` command for installing the browser needed by Playwright. [6](https://github.com/simonw/shot-scraper/issues/6)
- New `shot-scraper shot URL` command (also the default if you just run `shot-scraper ...`) which takes a single screenshot. [5](https://github.com/simonw/shot-scraper/issues/5)
- `shot-scraper multi shots.yml` command now executes the YAML file with a list of shots in it.

0.1a0

- Initial prototype. [1](https://github.com/simonw/shot-scraper/issues/1)

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.