WebScreenShot
Screenshot a webpage rendered in headless Chrome.
Install / Use
/learn @catleeball/WebScreenShotREADME
WebScreenShot
Screenshot a webpage rendered in headless Chrome.
A simple CLI tool to take screenshots of rendered webpages, given a URL or local file path prepended by file:///.
Usage
USAGE:
wss [FLAGS] [OPTIONS] <url> <output-path>
FLAGS:
--help Prints help information
-q, --quiet Display no messages to stdout.
-V, --version Prints version information
-z, --visible-only Screenshot only what is visible from the dimensions of the browser window, rather then the
entire surface of the page.
OPTIONS:
-h, --height <browser-height> Height of the browser to render the webpage in. [default: 800]
-w, --width <browser-width> Width of the browser to render the webpage in. [default: 1024]
-e, --element <element> CSS selector of element to screenshot.
-f, --format <format> Format to save screenshot as. Must be one of png, jpg, or pdf. [default: png]
[possible values: png, jpg, pdf]
-j, --jpg-quality <jpg-quality> Quality of jpg screenshot to output, 0-100. Will be ignored if --image-format is
not set to jpg. [default: 80]
ARGS:
<url> URL or file to take a screencap of. i.e. https://example.com or file:///path/to/file.html
[default: https://wikipedia.org]
<output-path> Local file path to save screenshot image to. [default: /tmp/screenshot.png]
Install
WebScreenShot (wss) can be installed via crates.io:
cargo install webscreenshot
Build
This package can be built by running:
cargo build --release --features="cli-binary"
Credits
WebScreenShot uses the screenshot functionality provided by the headless_chrome library. It isn't affiliated with the team who makes headless_chrome, but intends to be a convinent way to screenshot webpages from the command line.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
