본문으로 건너뛰기
Skillpedia
웹 스크레이핑33k · #8730

brightdata-local-search

하는 일

이 스킬은 AI 에이전트가 Bright Data로 로컬 웹 검색 엔진을 설정하고 실행하도록 돕습니다. 자체 도구를 통해 검색 엔진 결과를 얻고 싶은 개발자를 위한 것입니다.

사용하는 경우

  • ✓자체 로컬 검색 도구로 웹을 검색하고 싶을 때.
  • ✓여러 검색 엔진의 결과를 순위화하고 정리해야 할 때.
  • ✓프로젝트에 Bright Data의 SERP API를 설정하는 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/brightdata-local-search/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/brightdata-local-search/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“앱에서 웹을 검색할 수 있도록 Bright Data로 로컬 검색 서버를 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 unfancy-search 프로젝트를 클론하고, Bright Data 키와 선택 사항인 Anthropic 키를 추가한 뒤, Docker나 Node.js로 시작합니다. 그다음 로컬 엔드포인트로 검색을 실행합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Bright Data Local Search

Run powerful web searches locally using Bright Data's SERP API. This skill sets up the unfancy-search pipeline — a local search engine with query expansion, multi-engine SERP retrieval, RRF reranking, deduplication, and domain clustering.

Important: This skill uses the LOCAL version only. Do not use the hosted endpoint.

Prerequisites

Setup

Step 1: Clone and Configure

git clone https://github.com/yaronbeen/unfancy-search.git
cd unfancy-search
cp .env.example .env

Step 2: Set Environment Variables

Edit .env with your credentials:

BRIGHT_DATA_API_TOKEN=your_brightdata_token
BRIGHT_DATA_SERP_ZONE=serp_api1
ANTHROPIC_API_KEY=your_anthropic_key   # Optional: enables AI query expansion

Get your Bright Data token from: https://brightdata.com (SERP API section)

Step 3: Start the Local Server

Docker (recommended):

docker compose up -d
# Server runs at http://localhost:3000

Node.js:

pnpm install
pnpm dev
# Server runs at http://localhost:3000

API Endpoints

All requests go to http://localhost:3000:

Endpoint Method Description
/api/search POST Start a search job
/api/search-status/{jobId} GET Poll for results
/api/baseline POST Trigger baseline collection
/api/baseline-status/{id} GET Poll baseline progress

Running a Search

Step 1: Submit Search

curl -X POST http://localhost:3000/api/search \
  -H "Content-Type: application/json" \
  -d '{"query": "your search term"}'

The response returns a jobId.

Step 2: Poll for Results

curl http://localhost:3000/api/search-status/{jobId}

Poll every 3 seconds until status is "done".

Search Parameters

Parameter Type Default Description
query string required Search query
expand boolean false Enable AI query expansion via Claude
research boolean false Research mode (12 sub-queries for max coverage)
engines string[] all SERP engines to use
geo string — Geographic region filter
count number 10 Max results (up to 10)
includeDomains string[] — Only include results from these domains
excludeDomains string[] — Exclude results from these domains

Search Modes

  • Basic (expand: false): Single query, fastest, no AI cost
  • Expanded (expand: true): Claude Haiku generates 3 sub-queries for broader coverage
  • Research (research: true): 12 sub-queries for maximum coverage

Usage Examples

Basic Search from an Agent

# Start search
JOB_ID=$(curl -s -X POST http://localhost:3000/api/search \
  -H "Content-Type: application/json" \
  -d '{"query": "best practices for API rate limiting"}' | jq -r '.jobId')

# Poll until done
while true; do
  RESULT=$(curl -s http://localhost:3000/api/search-status/$JOB_ID)
  STATUS=$(echo $RESULT | jq -r '.status')
  if [ "$STATUS" = "done" ]; then
    echo $RESULT | jq '.results'
    break
  fi
  sleep 3
done

Research Mode with Domain Filtering

curl -X POST http://localhost:3000/api/search \
  -H "Content-Type: application/json" \
  -d '{
    "query": "kubernetes scaling strategies",
    "research": true,
    "excludeDomains": ["pinterest.com", "quora.com"]
  }'

Adding Search to an Existing Agent

To give your Claude Code agent search capabilities:

  1. Ensure the local server is running (docker compose up -d in the unfancy-search directory)
  2. Your agent can use curl or fetch to query http://localhost:3000/api/search
  3. Parse the ranked results to ground responses with real web data

Response Format

Results include:

  • Ranked URLs with RRF scores
  • Domain clustering (grouped by source)
  • Cost transparency (per-search expense breakdown)
  • Raw and unique result counts
  • Search duration

Troubleshooting

Issue Solution
Server won't start Verify Docker is running or Node.js 18+ installed
No results returned Check BRIGHT_DATA_API_TOKEN is valid and SERP API zone is active
Query expansion not working Verify `
자주 묻는 질문

시작하려면 무엇이 필요한가요?

SERP API 접근 권한이 있는 Bright Data 계정과 Docker 또는 Node.js 18 이상이 필요합니다.

호스팅 서비스를 사용하나요?

아니요. 스킬은 호스팅된 엔드포인트가 아니라 로컬 버전만 사용하라고 말합니다.

AI 쿼리 확장은 필수인가요?

아니요. Anthropic 키는 선택 사항이며, 설정하면 AI 쿼리 확장을 켭니다.

상세 정보

작성자의 원본 설명

Set up and run local web searches using Bright Data SERP API with the unfancy-search pipeline (query expansion, SERP retrieval, RRF reranking).

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8730
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬