Xpersona
P

playwright-browser

CLAWHUB · Unverified

Use Playwright to browse websites with a real (non-headless) browser and extract data by hooking network responses. Use when the user wants to: - View a webs... Skill: playwright-browser Owner: elijahxb Summary: Use Playwright to browse websites with a real (non-headless) browser and extract data by hooking network responses. Use when the user wants to: - View a webs... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-01T08:41:09.219Z | user Initial release of playwright-browser skill. - Launches a real (non-headless) Chrome/Chromium browser to navigate and interact with

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s178zpb65j4avtssw2524d6ev1840qz9:playwright-browser
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-elijahxb-playwright-browser/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,631 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: playwright-browser
description: |
  Use Playwright to browse websites with a real (non-headless) browser and extract data by hooking network responses.
  Use when the user wants to:
  - View a website's content, especially SPAs (Single Page Applications)
  - Navigate websites and click links
  - Search for keywords within web pages
  - Extract data from JavaScript-heavy sites
  - Capture API responses directly
  Triggers on: "查看网页", "browse site", "get content from URL", 
  "extract data from website", "hook API responses", "抓取网页内容",
  "find link", "click link", "search page"
---

# Playwright Browser Skill

## Purpose

This skill enables OpenClaw to launch a real Chrome/Chromium browser (non-headless), navigate to websites, and extract content by:
1. Scraping rendered DOM content
2. Hooking and capturing network responses (XHR/Fetch API calls)
3. Finding and clicking links
4. Searching for keywords in page content
5. Focusing on specific elements

## Prerequisites

Ensure Playwright is installed:
```bash
pip install playwright
playwright install chromium
```

## Usage

### 1. Basic Navigation and Content Extraction

```python
from skills.playwright-browser.scripts.browser_agent import SyncBrowserAgent

agent = SyncBrowserAgent(headless=False)
content = agent.get_page_content("https://example.com")
print(f"Title: {content['title']}")
agent.close()
```

### 2. Find and Click Links

```python
from skills.playwright-browser.scripts.browser_agent import SyncBrowserAgent

agent = SyncBrowserAgent(headless=False)
agent.navigate("https://sina.com")

# Find links containing specific text
links = agent.find_links_by_text("军事")
for link in links:
    print(f"Found: {link['text']} -> {link['href']}")

# Click the first matching link
agent.find_link_and_click("军事")

agent.close()
```

### 3. Search Page Content

```python
agent = SyncBrowserAgent(headless=False)
agent.navigate("https://mil.news.sina.com.cn/")

# Search for keyword in page
results = agent.search_page_content("伊朗")
for r in results:
    print(f"Found: {r['text']}")

# Focus on first result
if results:
    agent.focus_on_element(results[0])

agent.close()
```

### 4. Hook Network Responses

```python
agent = SyncBrowserAgent(headless=False)

def on_api_response(response):
    if response.resource_type in ['xhr', 'fetch']:
        print(f"API: {response.url}")

agent.hook_network_responses(on_api_response)
agent.navigate("https://spa-app.example.com")

# Get all captured API calls
api_calls = agent.get_captured_api_calls()
agent.close()
```

## Safety Guidelines

- **NEVER** navigate to suspicious or potentially malicious URLs
- Always validate URLs before navigation
- Respect robots.txt and website terms of service
- Warn user when accessing sites that may contain sensitive content
- Close browser when done to free resources

_meta.json

{
  "ownerId": "kn7beg4ga654mm38jzn55xap79840dwc",
  "slug": "playwright-browser",
  "version": "1.0.0",
  "publishedAt": 1775032869219
}

scripts/requirements.txt

playwright>=1.40.0

skill-card.md

## Description:

Use Playwright to browse websites with a real, non-headless browser and extract rendered page content or network responses.

This skill is ready for commercial/non-commercial use.

## Publisher:

[elijahxb](https://clawhub.ai/user/elijahxb)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and automation agents use this skill to open browser sessions, navigate web pages, extract rendered DOM text and links, click matching links, search page content, capture API responses, and save browser outputs when requested.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Network response capture can collect sensitive content from logged-in or private browsing sessions.

Mitigation: Use the skill only in a sandbox or non-sensitive browser session, and avoid logged-in or private sites when response capture is enabled.

Risk: Bundled workflows read local attendance files and write reports, images, or screenshots to local paths.

Mitigation: Remove or separate the attendance, Sina image, and 12306 scripts unless those workflows are intentionally required, and review output paths before running them.

Risk: Browser automation can navigate to arbitrary or hard-coded external sites.

Mitigation: Validate URLs, constrain allowed domains for planned tasks, and follow the target site's terms before navigation or data extraction.

Risk: The dependency declaration is not fully pinned.

Mitigation: Pin dependencies and re-scan the release before deployment.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/elijahxb/skills/playwright-browser)
- [ClawHub publisher profile](https://clawhub.ai/user/elijahxb)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, files, guidance]

**Output Format:** [Markdown guidance with Python and shell examples; helper scripts may emit JSON, screenshots, downloaded images, or Excel files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Network capture can include response bodies; some bundled workflows write files to local user paths.]

## Skill Version(s):

1.0.0 (source: ClawHub release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to playwright-browser and adjacent AI workflows.