Installation Guide
π¦ Quick Installation
1. Clone or Download the Skill
# Method 1: Using git clone (if public repo)
git clone https://github.com/waisimon/playwright-scraper-skill.git
cd playwright-scraper-skill
# Method 2: Download ZIP and extract
# After downloading, enter the directory
cd playwright-scraper-skill2. Install Dependencies
# Install Playwright (recommended)
npm install
# Install browser (Chromium)
npx playwright install chromium3. Test
# Quick test
node scripts/playwright-simple.js https://example.com
# Test Stealth version
node scripts/playwright-stealth.js https://example.comπ§ Advanced Installation
Using with OpenClaw
If youβre using OpenClaw, you can place this skill in the skills directory:
# Assuming your OpenClaw workspace is at ~/.openclaw/workspace
cp -r playwright-scraper-skill ~/.openclaw/workspace/skills/
# Then you can invoke it in OpenClawβ Verify Installation
Run the example script:
# Discuss.com.hk example (verified working)
bash examples/discuss-hk.shIf you see output similar to this, installation is successful:
π·οΈ Starting Playwright Stealth scraper...
π± Navigating to: https://m.discuss.com.hk/#hot
π‘ HTTP Status: 200
β
Scraping complete!
π Common Issues
Issue: Playwright not found
Error message: Error: Cannot find module 'playwright'
Solution:
npm install
npx playwright install chromiumIssue: Browser launch failed
Error message: browserType.launch: Executable doesn't exist
Solution:
npx playwright install chromiumIssue: Permission errors
Error message: Permission denied
Solution:
chmod +x scripts/*.js
chmod +x examples/*.shπ System Requirements
- Node.js: v18+ recommended
- OS: macOS / Linux / Windows
- Disk Space: ~500MB (including Chromium)
- RAM: 2GB+ recommended
π Next Steps
After installation, check out: