capture-website
由 silencezx007 提供
Web & Frontend Development简介
Capture website screenshots from the command line.
描述
该技能的功能
Captures screenshots of any URL from the command line using capture-website-cli. Supports full-page capture, custom viewport dimensions, dark mode, device emulation, and waiting for specific elements before shooting.
Handles dynamic and slow-loading pages with configurable delays and element-wait options that simpler screenshot utilities lack.
何时使用
- Archive a tweet before it gets deleted
- Capture a breaking news article at a specific moment
- Take a mobile-view screenshot to check responsive layouts
- Screenshot a web app in dark mode
- Grab a dynamically loaded page after content finishes rendering
示例工作流
User asks: Screenshot this tweet for me: https://x.com/elonmusk/status/2026052687423562228
- 1
Run capture-website with the URL and --output set to the workspace path
- 2
Set --width=1280 and --height=800 for a standard viewport
- 3
Add --delay=2 if the page loads slowly
- 4
Send the saved PNG file to the user
A PNG screenshot of the tweet saved to the workspace and delivered to the user
前置要求
- capture-website-cli global package (npm install -g capture-website-cli)
安装
clawhub install silencezx007/capture-website运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。