AGENT SKILL

shot-scraper

Use this skill when the user wants to screenshot a web page, capture it as PDF, dump rendered HTML, or run JavaScript against a live page - all headless.

License 许可
MIT
所属仓库
javimosch/supercli
最近更新
2026-11-02
Stars
★ 57
Forks
5

01 前言 Front Matter

name
shot-scraper
description
Use this skill when the user wants to screenshot a web page, capture it as PDF, dump rendered HTML, or run JavaScript against a live page - all headless.

03 SKILL.md 正文

shot-scraper Plugin

shot-scraper automates headless Chromium (Playwright): full-page/element screenshots, PDF capture, rendered HTML dumps, JavaScript evaluation, accessibility snapshots, and multi-shot YAML scripts.

Commands

Capture

  • shot-scraper page shot — Screenshot: sc shot-scraper page shot https://example.com -o shot.png
  • shot-scraper page pdf — Save as PDF: sc shot-scraper page pdf https://example.com -o page.pdf
  • shot-scraper page html — Rendered HTML: sc shot-scraper page html https://example.com
  • shot-scraper page javascript — Run JS: sc shot-scraper page javascript https://x 'document.title'

General

  • shot-scraper self version — Print shot-scraper version
  • shot-scraper _ _ — Passthrough to shot-scraper CLI

Usage Examples

  • "Take a full-page screenshot of this URL"
  • "Save this article as a PDF"
  • "Get the rendered HTML after JavaScript runs"

Installation

pipx install shot-scraper && shot-scraper install

Examples

shot-scraper https://example.com -o shot.png
shot-scraper https://example.com --selector '#main' -o el.png
shot-scraper pdf https://example.com -o page.pdf
shot-scraper multi shots.yml

Key Features

  • Full-page or CSS-selector shots
  • PDF + HTML + accessibility capture
  • JS evaluation on live pages
  • YAML multi-shot scripts (shot-scraper multi)

04 同仓库更多 Skills