BrightData

From Steffen025/pai-opencode · View interactive version

BrightData is an AI agent skill from the GitHub repository Steffen025/pai-opencode. Progressive URL scraping. USE WHEN Bright Data, scrape URL, web scraping tiers. SkillSearch('brightdata') for docs.

How to use this skill

Skill file

Customization

Before executing, check for user customizations at:

~/.opencode/PAI/USER/SKILLCUSTOMIZATIONS/BrightData/

If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.

Voice Notification

When executing a workflow, do BOTH:

  1. Send voice notification:

```bash

curl -s -X POST http://localhost:8888/notify \

-H "Content-Type: application/json" \

-d '{"message": "Running the WORKFLOWNAME workflow from the BrightData skill"}' \

> /dev/null 2>&1 &

```

  1. Output text notification:

```

Running the WorkflowName workflow from the BrightData skill...

```

Workflow Routing

When executing a workflow, output this notification directly:

Running the **WorkflowName** workflow from the **Brightdata** skill...

CRITICAL: This workflow implements progressive escalation for URL content retrieval.

When user requests scraping/fetching URL content:

Examples: "scrape this URL", "fetch this page", "get content from [URL]", "pull content from this site", "retrieve [URL]", "can't access this site", "this site is blocking me", "use Bright Data to fetch"

→ READ: Workflows/FourTierScrape.md

→ EXECUTE: Four-tier progressive scraping workflow (WebFetch → Curl → Browser Automation → Bright Data MCP)


When to Activate This Skill

Direct Scraping Requests (Categories 1-4)

Access & Bot Detection Issues (Categories 5-7)

Result-Oriented Requests (Category 8)

Use Case Indicators


Core Capabilities

Progressive Escalation Strategy:

  1. Tier 1: WebFetch - Fast, simple, built-in Claude Code tool
  2. Tier 2: Customized Curl - Chrome-like browser headers to bypass basic bot detection
  3. Tier 3: Browser Automation - Full browser automation using Playwright for JavaScript-heavy sites
  4. Tier 4: Bright Data MCP - Professional scraping service that handles CAPTCHA and advanced bot detection

Key Features:


Workflow Overview

FourTierScrape.md - Complete URL content scraping with four-tier fallback strategy


Extended Context

Integration Points:

When Each Tier Is Used:

Configuration:

No configuration required - all tools are available by default in Claude Code


Examples

Example 1: Simple Public Website

User: "Scrape https://example.com"

Skill Response:

  1. Routes to three-tier-scrape.md
  2. Attempts Tier 1 (WebFetch)
  3. Success → Returns content in markdown
  4. Total time: <5 seconds

Example 2: Site with JavaScript Requirements

User: "Can't access this site https://dynamic-site.com"

Skill Response:

  1. Routes to four-tier-scrape.md
  2. Attempts Tier 1 (WebFetch) → Fails (blocked)
  3. Attempts Tier 2 (Curl with Chrome headers) → Fails (JavaScript required)
  4. Attempts Tier 3 (Browser Automation) → Success
  5. Returns content in markdown
  6. Total time: ~15-20 seconds

Example 3: Site with Advanced Bot Detection

User: "Scrape https://protected-site.com"

Skill Response:

  1. Routes to four-tier-scrape.md
  2. Attempts Tier 1 (WebFetch) → Fails (blocked)
  3. Attempts Tier 2 (Curl) → Fails (advanced detection)
  4. Attempts Tier 3 (Browser Automation) → Fails (CAPTCHA)
  5. Attempts Tier 4 (Bright Data MCP) → Success
  6. Returns content in markdown
  7. Total time: ~30-40 seconds

Example 4: Explicit Bright Data Request

User: "Use Bright Data to fetch https://difficult-site.com"

Skill Response:

  1. Routes to four-tier-scrape.md
  2. User explicitly requested Bright Data
  3. Goes directly to Tier 4 (Bright Data MCP) → Success
  4. Returns content in markdown
  5. Total time: ~5-10 seconds

Related Documentation:

Last Updated: 2025-11-23

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.