This repository was archived by the owner on May 5, 2026. It is now read-only.
Repository navigation
Options
-o, --output <FILE>: Output file or path for the screenshot.-d, --debug: Enable debug output.-h, --height <PIXELS>: Screenshot height (default: 1080).-w, --width <PIXELS>: Screenshot width (default: 1920).-s, --sleep <SECONDS>: Sleep time before capturing (default: 0).-u, --ua <STRING>: Custom User-Agent string.-t, --target <URL>: Target URL to capture (e.g.,https://example.com).-f, --format <FORMAT>: Output format (png,webp,jpg).--help: Print help information.
Example
Capture a screenshot of https://example.com with a custom size and output format:
websnap -t https://example.com -o screenshot.png -w 1280 -h 720 -f png -d