shot-scraper

raw JSON →
1.9.1 verified Fri May 01 auth: no python

Shot-scraper is a command-line tool for taking automated screenshots of websites and scraping data using JavaScript. It uses Playwright under the hood. Current version is 1.9.1, released irregularly.

pip install shot-scraper
error shot-scraper: error: unrecognized arguments: --output screenshot.png
cause The -o flag requires a value; ensure the filename is immediately after -o.
fix
shot-scraper https://example.com -o screenshot.png
error Error: Browser not found. Run 'shot-scraper install' to download a browser.
cause Playwright browsers not installed after pip install.
fix
Run 'shot-scraper install' to download the default Chromium browser.
gotcha shot-scraper is a CLI tool, not a Python library. It cannot be imported as a module in Python scripts.
fix Use subprocess.run(['shot-scraper', ...]) or run directly in the terminal.
gotcha Playwright browsers must be installed separately with 'shot-scraper install' after pip install.
fix Run 'shot-scraper install' to download browsers (e.g., Chromium).
breaking Requires Python 3.10 or higher. Older versions are not supported.
fix Upgrade Python to 3.10+ or use an older version of shot-scraper.
shot-scraper install

Install shot-scraper and Playwright browsers, then take a screenshot of a URL.

pip install shot-scraper
shot-scraper install
shot-scraper https://example.com -o screenshot.png