Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

v0.1.0

Latest

Choose a tag to compare

@canmi21 canmi21 released this 22 Apr 07:00
· 1 commit to main since this release
b8f22c5

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