Fork of simonw/shot-scraper on Github. Added remote browser instances among other various tweaks.
  • Python 91.4%
  • Shell 8.6%
Find a file
taf a367940cee
Some checks failed
Test / test (3.10) (push) Has been cancelled
Test / test (3.11) (push) Has been cancelled
Test / test (3.12) (push) Has been cancelled
Test / test (3.13) (push) Has been cancelled
Test / test (3.9) (push) Has been cancelled
move capture script to project repo
2025-10-20 18:16:48 -04:00
.github Stop testing on Python 3.8, start testing on 3.13 2025-02-13 12:32:22 -08:00
docs Better --help for #173 2025-03-24 17:31:32 -07:00
shot_scraper add 'system-chromium' as a browser option to get working text rendering' 2025-10-16 00:50:17 -04:00
tests shot-scraper javascript -i gh:simonw/readability feature 2025-03-24 17:26:56 -07:00
.gitignore gitignore the dl'd readability 2025-10-16 23:42:26 -04:00
.python-version go ahead and commit .python-version just so I don't have to remember it (I use pyenv on all my systems) 2025-10-16 00:52:17 -04:00
.readthedocs.yaml Improve documentation a11y (#120) 2023-11-01 14:52:05 -07:00
fetch_readability.sh helper 2025-10-16 00:35:54 -04:00
LICENSE Initial structure, created with cookiecutter click-app 2022-03-08 13:35:30 -08:00
Pipfile Initial structure, created with cookiecutter click-app 2022-03-08 13:35:30 -08:00
README.md Add Reuters example to README (#112) 2023-05-15 08:38:19 -07:00
setup.py Release 1.8 2025-03-24 18:45:51 -07:00

shot-scraper

PyPI Changelog Tests License discord

A command-line utility for taking automated screenshots of websites

For background on this project see shot-scraper: automated screenshots for documentation, built on Playwright.

Documentation

Get started with GitHub Actions

To get started without installing any software, use the shot-scraper-template template to create your own GitHub repository which takes screenshots of a page using shot-scraper. See Instantly create a GitHub repository to take screenshots of a web page for details.

Quick installation

You can install the shot-scraper CLI tool using pip:

pip install shot-scraper
# Now install the browser it needs:
shot-scraper install

Taking your first screenshot

You can take a screenshot of a web page like this:

shot-scraper https://datasette.io/

This will create a screenshot in a file called datasette-io.png.

Many more options are available, see Taking a screenshot for details.

Examples