A command-line utility for taking automated screenshots of websites
Project description
shot-scraper
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
Full documentation can be found at shot-scraper.datasette.io
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
- The shot-scraper-demo repository uses this tool to capture recently spotted owls in El Granada, CA according to this page, and to generate an annotated screenshot illustrating a Datasette feature as described in my blog.
- Ben Welsh built @newshomepages, a Twitter bot that uses
shot-scraper
and GitHub Actions to take screenshots of news website homepages and publish them to Twitter. The code for that lives in palewire/news-homepages. - scrape-hacker-news-by-domain uses
shot-scraper javascript
to scrape a web page. See Scraping web pages from the command-line with shot-scraper for details of how this works.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file shot-scraper-0.15.tar.gz
.
File metadata
- Download URL: shot-scraper-0.15.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af995b16b92944bd9331bd617e75e8b2db09df5acb01dd729f61cfc332f90e3 |
|
MD5 | 0a00bb28890ce76d6e39b6ee6b3a1fbc |
|
BLAKE2b-256 | 4b8137a1ae703c9ba35f9e9df72e85cc0a632f2c88820ca05b31c95850417769 |
File details
Details for the file shot_scraper-0.15-py3-none-any.whl
.
File metadata
- Download URL: shot_scraper-0.15-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 017196ef53cd6805db41f36df1e962c5a55df484f82a7e507f547e4568983d21 |
|
MD5 | b4e54a8999f0a9e5b8f51f48fe6d171e |
|
BLAKE2b-256 | f82f6a684389f16d776ac5fd778ac4e1d9735eaa2a0c96a93517337bd1616d23 |