कंटेंट पर जाएँ
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 या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक