{"repo":"sindresorhus/capture-website-cli","free":true,"listed":false,"github":"https://github.com/sindresorhus/capture-website-cli","clone":"git clone https://github.com/sindresorhus/capture-website-cli.git","description":"Capture screenshots of websites from the command-line","language":"JavaScript","stars":854,"topics":["capture-screenshots","screenshots","website-screenshot-capturer","website-screenshot","puppeteer","cli-app","nodejs","npm-package"],"license":"MIT","category":"cli-tools","readme_excerpt":"capture-website-cli Capture screenshots of websites from the command-line It uses Puppeteer (Chrome) under the hood. Install Note to Linux users: If you get a \"No usable sandbox!\" error, you need to enable system sandboxing. Note to Apple silicon users: If you get a \"spawn Unknown system error\" error, try installing Rosetta by running softwareupdate --install-rosetta . Usage FAQ More here. How do I capture websites with self-signed certificates? Use the --insecure flag to bypass certificate validation. I'm getting connection errors (ECONNREFUSED), what can I do? Network connectivity issues can occur due to: - Slow networks : Increase timeout with --timeout=60 (or higher) - Corporate firewalls : May block network requests - VPN/proxy issues : Try disabling VPN or configuring proxy settings - IPv6 issues : Some networks have IPv6 connectivity problems Try testing with a simple site first: capture-website https://example.com --output=test.png How does --auto-output work? It automatically generates filenames based on the input: - URLs: example.com.png - Files: index.png (from index.html ) - Stdin: screenshot.png If a file already exists, it increments: example.com (1).png , example.com (2).png , etc. How can I capture websites from a file with URLs? Let's say you have a file named urls.txt with: You can run this: Related - capture-website - API for this package - pageres-cli - A different take on screenshotting websites","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/capture-website-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}