Skip to main content
Photo of DeepakNess DeepakNess

Screenshot tool shot-scraper package

Unproofread notes

I was reading this post designing agentic loops by Simon Willison and came across this Python package called shot-scraper. It's a Python specific command-line utility that automates the process of taking screenshots of websites.

By the way, it's a wrapper around Playwright, and here are some cool features:

  • Taking automated screenshots of entire web pages or specific elements
  • Capturing screenshots of specific CSS selectors or page regions
  • Supporting various output formats including PNG and JPEG with quality controls
  • Handling authentication contexts for taking screenshots of protected pages
  • Taking screenshots at different viewport sizes and device scale factors

It can be installed via below commands:

pip install shot-scraper
shot-scraper install  # Installs the required browser engine

I think, it's going to be very useful for some programmatic SEO related projects which requires taking screenshots of webpages. I am yet to install and use this, but it looks very promising when I went through their docs.

Webmentions

What’s this?