{"id":24582,"library":"shot-scraper","title":"shot-scraper","description":"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.","status":"active","version":"1.9.1","language":"python","source_language":"en","source_url":"https://github.com/simonw/shot-scraper","tags":["screenshots","web-scraping","playwright","cli","automation"],"install":[{"cmd":"pip install shot-scraper","lang":"bash","label":"Install shot-scraper"},{"cmd":"shot-scraper install","lang":"bash","label":"Install Playwright browsers"}],"dependencies":[{"reason":"Browser automation engine required for screenshots and scraping.","package":"playwright","optional":false}],"imports":[{"note":"shot-scraper is primarily a CLI tool. There is no public Python API to import.","symbol":"shot_scraper","correct":"No importable Python module; use CLI via subprocess or pipx run."}],"quickstart":{"code":"pip install shot-scraper\nshot-scraper install\nshot-scraper https://example.com -o screenshot.png","lang":"bash","description":"Install shot-scraper and Playwright browsers, then take a screenshot of a URL."},"warnings":[{"fix":"Use subprocess.run(['shot-scraper', ...]) or run directly in the terminal.","message":"shot-scraper is a CLI tool, not a Python library. It cannot be imported as a module in Python scripts.","severity":"gotcha","affected_versions":"all"},{"fix":"Run 'shot-scraper install' to download browsers (e.g., Chromium).","message":"Playwright browsers must be installed separately with 'shot-scraper install' after pip install.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.10+ or use an older version of shot-scraper.","message":"Requires Python 3.10 or higher. Older versions are not supported.","severity":"breaking","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"shot-scraper https://example.com -o screenshot.png","cause":"The -o flag requires a value; ensure the filename is immediately after -o.","error":"shot-scraper: error: unrecognized arguments: --output screenshot.png"},{"fix":"Run 'shot-scraper install' to download the default Chromium browser.","cause":"Playwright browsers not installed after pip install.","error":"Error: Browser not found. Run 'shot-scraper install' to download a browser."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}