playwright-scraper-skill

Scrape dynamic and anti-bot protected sites with Playwright scripts.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/gaos6e/MyOpenclaw --skill playwright-scraper-skill-gaos6e
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-scraper-skill
Source: https://github.com/gaos6e/MyOpenclaw/tree/main/workspace/skills/playwright-scraper-skill
Command: npx skills add https://github.com/gaos6e/MyOpenclaw --skill playwright-scraper-skill-gaos6e

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve?

Dynamic websites with anti-bot protections are hard to scrape reliably; this Skill provides Playwright-based tooling for OpenClaw to navigate JavaScript-rendered pages and bypass anti-bot measures in a controlled, reproducible way.

Core Features & Use Cases

  • Simple mode for regular dynamic sites using Playwright Simple for fast extraction.
  • Stealth mode for Cloudflare and other anti-bot protections with automated UA masking and anti-detection tactics.
  • Special site guidance for challenging targets such as YouTube and Reddit via dedicated skills.
  • Optional outputs including HTML, screenshots, and structured data, plus environment-variable customization.

Quick Start

Install dependencies and run a quick test with node scripts/playwright-stealth.js <URL>.

Frequently Asked Questions about playwright-scraper-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape dynamic websites that use Cloudflare anti-bot protection?

Scraping dynamic websites with Cloudflare anti-bot protection requires a stealth mode approach using Playwright to automate browser actions and mask your user agent. This Skill provides a dedicated stealth script that applies anti-detection tactics to bypass these measures reliably.

What is the best way to extract JavaScript-rendered web content without getting blocked?

Extracting JavaScript-rendered content without blocks is best handled by using a headless browser framework like Playwright to execute dynamic scripts. The simple scraping mode in this Skill navigates JavaScript-rendered pages to capture dynamically loaded HTML and screenshots.

Does Playwright work for scraping specialized targets like YouTube and Reddit?

Playwright works for scraping specialized targets like YouTube and Reddit when paired with dedicated scraping guidance. This Skill includes specific site guidance and scripts designed to handle the unique dynamic loading and anti-bot structures of these platforms.

How do I set up Playwright to run web scraping scripts locally?

To set up Playwright for local web scraping, you need to install Node.js dependencies via npm and configure the Chromium browser environment. This Skill offers a straightforward installation process and a quick start command to launch your scraping script.

Can I customize user agents and capture screenshots during a Playwright scraping session?

You can customize user agents and capture screenshots during a Playwright scraping session through environment-variable configuration. The scripts support headless or headful modes, optional HTML outputs, and screenshot generation for comprehensive data extraction.

What are the limitations of using Playwright for anti-bot web scraping?

Limitations of using Playwright for anti-bot scraping include potential detection by advanced security systems despite stealth tactics and the resource overhead of running full browser instances. It is most effective for controlled, reproducible extraction rather than high-volume crawling.