Retour à la bibliothèque

Extraction de données web

ai-researchSkill116 déploiements
Commande d'installation AntiGravity
$npx @aift/antigravity@latest pull web-data-scrape
À propos de cette ressource

Utilisez ce skill quand vous avez besoin d'extraire des données de n'importe quelle page web sous forme de markdown propre. Ce skill permet de contourner la détection des bots et les CAPTCHA, nécessitant les variables d'environnement BRIGHTDATA_API_KEY et BRIGHTDATA_UNLOCKER_ZONE.

Instructions source (SKILL.md / XML)
---
name: scrape
description: Scrape any webpage as clean markdown via Bright Data Web Unlocker API. Bypasses bot detection and CAPTCHA. Requires BRIGHTDATA_API_KEY and BRIGHTDATA_UNLOCKER_ZONE environment variables.
---

# Bright Data - Web Scraper

Scrape any webpage and get clean markdown content using Bright Data's Web Unlocker API. Automatically bypasses bot detection and CAPTCHA.

## Setup

**1. Get your API Key:**
Get a key from [Bright Data Dashboard](https://brightdata.com/cp).

**2. Create a Web Unlocker zone:**
Create a zone at brightdata.com/cp by clicking "Add" (top-right), selecting "Unlocker zone".

**3. Set environment variables:**
```bash
export BRIGHTDATA_API_KEY="your-api-key"
export BRIGHTDATA_UNLOCKER_ZONE="your-zone-name"
```

## Usage

```bash
bash scripts/scrape.sh "url"
```

**Parameters:**
- `url` (required): The webpage URL to scrape

**Examples:**
```bash
# Scrape a news article
bash scripts/scrape.sh "https://example.com/article"

# Scrape a product page
bash scripts/scrape.sh "https://shop.example.com/product/123"
```

## Output Format

Returns clean markdown content extracted from the webpage:
```markdown
# Page Title

Main content of the page converted to markdown format...

## Section Heading

More content...
```

## Features

- **Bot Detection Bypass**: Automatically handles anti-bot measures
- **CAPTCHA Solving**: Bypasses CAPTCHA challenges
- **Clean Markdown**: Returns well-formatted markdown content
- **JavaScript Rendering**: Handles JavaScript-heavy pages

## Dependencies

- `curl` - For API requests
🎁 1ère journée offerte (990 €) aux profils qualifiés

Déployer ce skill dans votre entreprise sans coder ?

Votre Directeur IA externalisé installe ces agents, connecte vos outils et forme vos équipes sur vos vrais cas métier (dès 990 € HT/mois).

Réserver mon audit offert (45 min) →