bright-data-best-practices
하는 일
이 스킬은 AI 에이전트에게 Bright Data의 웹 데이터 API를 위한 참고 가이드를 제공합니다. 스크래핑, 검색, 브라우저 자동화 기능을 만드는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓많은 웹 페이지에서 콘텐츠를 안정적으로 가져와야 하는 기능을 만들 때.
- ✓Google, Bing, Yandex 검색 결과를 구조화된 데이터로 얻어야 할 때.
- ✓API로 웹사이트에서 클릭, 스크롤, 양식 입력을 자동화하고 싶을 때.
스킬 링크
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/web-data/bright-data-best-practices/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Google 검색 결과를 제 앱으로 가져오려면 어떤 Bright Data API를 써야 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 사용 목적에 맞는 Bright Data API를 찾고, 인증과 코드 설정을 도와줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Bright Data APIs
Bright Data provides infrastructure for web data extraction at scale. Four primary APIs cover different use cases — always pick the most specific tool for the job.
Choosing the Right API
| Use Case | API | Why |
|---|---|---|
| Scrape any webpage by URL (no interaction) | Web Unlocker | HTTP-based, auto-bypasses bot detection, cheapest |
| Google / Bing / Yandex search results | SERP API | Specialized for SERP extraction, returns structured data |
| Structured data from Amazon, LinkedIn, Instagram, TikTok, etc. | Web Scraper API | Pre-built scrapers, no parsing needed |
| Click, scroll, fill forms, run JS, intercept XHR | Browser API | Full browser automation |
| Puppeteer / Playwright / Selenium automation | Browser API | Connects via CDP/WebDriver |
Authentication Pattern (All APIs)
All APIs share the same authentication model:
export BRIGHTDATA_API_KEY="your-api-key" # From Control Panel > Account Settings
export BRIGHTDATA_UNLOCKER_ZONE="zone-name" # Web Unlocker zone name
export BRIGHTDATA_SERP_ZONE="serp-zone-name" # SERP API zone name
export BROWSER_AUTH="brd-customer-ID-zone-NAME:PASSWORD" # Browser API credentials
REST API authentication header for Web Unlocker and SERP API:
Authorization: Bearer YOUR_API_KEY
Web Unlocker API
HTTP-based scraping proxy. Best for simple page fetches without browser interaction.
Endpoint: POST https://api.brightdata.com/request
import requests
response = requests.post(
"https://api.brightdata.com/request",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"zone": "YOUR_ZONE_NAME",
"url": "https://example.com/product/123",
"format": "raw"
}
)
html = response.text
Key Parameters
| Parameter | Type | Description |
|---|---|---|
zone |
string | Zone name (required) |
url |
string | Target URL with http:// or https:// (required) |
format |
string | "raw" (HTML) or "json" (structured wrapper) (required) |
method |
string | HTTP verb, default "GET" |
country |
string | 2-letter ISO for geo-targeting (e.g., "us", "de") |
data_format |
string | Transform: "markdown" or "screenshot" |
async |
boolean | true for async mode |
Quick Patterns
# Get markdown (best for LLM input)
response = requests.post(
"https://api.brightdata.com/request",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"zone": ZONE, "url": url, "format": "raw", "data_format": "markdown"}
)
# Geo-targeted request
json={"zone": ZONE, "url": url, "format": "raw", "country": "de"}
# Screenshot for debugging
json={"zone": ZONE, "url": url, "format": "raw", "data_format": "screenshot"}
# Async for bulk processing
json={"zone": ZONE, "url": url, "format": "raw", "async": True}
Critical rule: Never use Web Unlocker with Puppeteer, Playwright, Selenium, or anti-detect browsers. Use Browser API instead.
See references/web-unlocker.md for complete reference including proxy interface, special headers, async flow, features, and billing.
SERP API
Structured search engine result extraction for Google, Bing, Yandex, DuckDuckGo.
Endpoint: POST https://api.brightdata.com/request (same as Web Unlocker)
response = requests.post(
"https://api.brightdata.com/request",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"zone": "YOUR_SERP_ZONE",
"url": "https://www.google.com/search?q=python+web+scraping&brd_json=1&gl=us&hl=en",
"format": "raw"
}
)
data = response.json()
for result in data.get("organic", []):
print(result["rank"], result["title"], result["link"])
Essential Google URL Parameters
| Parameter | Description | Example |
|---|---|---|
q |
Search query | q=python+web+scraping |
brd_json |
Parsed JSON output | brd_json=1 (always use for data pipelines) |
gl |
Country for search | gl=us |
hl |
Language | hl=en |
start |
Pagination offset | start=10 (page 2), start=20 (page 3) |
tbm |
Search type | tbm=nws (news), tbm=isch (images), tbm=vid (videos) |
brd_mobile |
Device | brd_mobile=1 (mobile), brd_mobile=ios |
brd_browser |
Browser | brd_browser=chrome |
brd_ai_overview |
Trigger AI Overview | brd_ai_overview=2 |
uule |
Encoded geo location | for precise |
자주 묻는 질문
어떤 Bright Data API를 다루나요?
Web Unlocker, SERP, Web Scraper, Browser API를 다룹니다.
설정에 무엇이 필요한가요?
Bright Data API 키와 zone 이름이 필요하며, 환경 변수로 설정합니다.
도구 선택을 도와주나요?
네. 스킬의 표는 각 사용 목적을 가장 알맞은 API와 연결합니다.
상세 정보
작성자의 원본 설명
Build production-ready Bright Data integrations with best practices baked in. Reference documentation for developers using coding assistants (Claude Code, Cursor, etc.) to implement web scraping, search, browser automation, and structured data extraction. Covers Web Unlocker API, SERP API, Web Scraper API, and Browser API (Scraping Browser).
인기도
- GitHub 스타
- 33k
- 순위
- #9095
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
owasp-security
33k웹 앱, API, 모바일, 컨테이너, AI 에이전트를 위한 OWASP 보안 지침을 따르도록 해서, 흔한 약점을 찾고 수정안을 제안하게 합니다.
agent-management
33k에이전트가 AI Maestro 명령줄을 사용해 AI 에이전트를 만들고, 나열하고, 일시 정지하고, 깨우고, 이름을 바꾸고, 삭제하도록 돕습니다.
agent-messaging
33k에이전트가 Agent Messaging Protocol로 AI 에이전트 사이에 서명된 메시지를 보내고, 받고, 답하도록 돕습니다. 대부분 내 컴퓨터에서 작동합니다.
docs-search
33k에이전트가 자동 생성된 코드 문서에서 함수 시그니처, 클래스 정의, 주석을 검색하도록 해서, 코드를 바꾸기 전에 실제 API를 확인하게 합니다.