playwright

Solid

Drive a real browser from the terminal to scrape pages, extract structured data (reviews, comments, listings, tables), capture batch screenshots, fill forms, save pages as PDF, and walk JavaScript-heavy or login-gated sites that plain HTTP scrapers can't reach. Built on `playwright-cli` with a snapshot-then-ref interaction model that survives DOM changes far better than CSS selectors.

Web & Frontend 161 stars 17 forks Updated today AGPL-3.0

Install

View on GitHub

Quality Score: 85/100

Stars 20%
74
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Playwright — Browser Automation Drive a real Chromium/Firefox/WebKit browser from the terminal. The page is rendered like a human would see it — JavaScript executes, lazy content loads, login state persists across calls — and you walk through it via a stable numeric reference (`e1`, `e2`, ...) that doesn't break when the site re-themes its CSS. This skill is for **content / data tasks** the user can already see in their browser but doesn't want to scrape one-by-one: review extraction, batch screenshots, login-gated reading, form filling, structured table dumps, page-to-PDF. ## When to Activate - User mentions: "scrape", "抓取", "扒", "extract reviews/comments/listings", "batch screenshot N pages", "save these URLs as PDF", "fill this form on N items", "log in and download my data". - The target site uses heavy JavaScript or login walls — `curl` / `requests` / `BeautifulSoup` would only return an empty shell. - The user wants the visible rendered content, not just raw HTML. Do not activate for: pure HTML / static page reading (use `curl` + a parser instead — faster, no browser overhead), or for testing a webapp the user is developing locally (write Playwright Python scripts directly — this skill is CLI-flavoured for ad-hoc work). ## Prerequisites `npx` (ships with Node.js ≥ 18). Check before proposing commands: ```bash command -v npx >/dev/null 2>&1 || { echo "Need Node.js — install from https://nodejs.org/"; exit 1; } ``` The bundled wrapper script `scripts/run.sh` ca...

Details

Author
edison7009
Repository
edison7009/Coffee-CLI
Created
3 months ago
Last Updated
today
Language
Rust
License
AGPL-3.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category