본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

playwright-npx

mahone-bot 제작

Web & Frontend Development
937clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Fast browser automation using Node.js scripts with Playwright (run via `node script.mjs`)

설명

이 스킬이 하는 일

Browser automation skill using Playwright and Node.js scripts. Handles JavaScript-heavy sites, form interactions, screenshots, and data scraping. Run scripts directly with `node script.mjs`.

Gives full programmatic control over browser behavior for complex sites where simple HTTP fetching fails due to JavaScript rendering or dynamic content.

사용 시점

  • Scraping data from JavaScript-rendered pages
  • Taking full-page screenshots of websites
  • Automating login and form submission flows
  • Extracting structured data from news or listing sites
  • Maintaining persistent browser sessions across runs

예시 워크플로

입력

User asks: scrape the top 5 stories from Hacker News

에이전트
  1. 1

    Create a script in tmp/ using the scrape template

  2. 2

    Launch a headless Chromium browser with Playwright

  3. 3

    Navigate to news.ycombinator.com

  4. 4

    Extract story titles and URLs using page.$$eval on .titleline > a

  5. 5

    Log results as JSON and close the browser

출력

A JSON array of 5 objects each with title and url fields printed to stdout

설치

clawhub install mahone-bot/playwright-npx

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크