Skip to main content

web-search

Free web search via DuckDuckGo — text, news, images. No API key needed. Self-hosted SearXNG as alternative.

소스 정보

저장소
fuyuxiang/echo-agent
최근 소스 활동
2026년 8월 2일 03:20
감지된 SKILL.md 언어
영어
스타
1,059
포크
27

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
web-search
description
Free web search via DuckDuckGo — text, news, images. No API key needed. Self-hosted SearXNG as alternative.
version
1.0.0
metadata
{"echo":{"tags":["Search","Web","DuckDuckGo","SearXNG","Research"]}}
# Web Search Free web search without API keys. Two options: DuckDuckGo (zero config) or SearXNG (self-hosted). ## DuckDuckGo (Primary) ### Python library (recommended) ```bash pip install duckduckgo_search ``` ```python from duckduckgo_search import DDGS # Text search results = DDGS().text("query here", max_results=5) for r in results: print(f"{r['title']}\n{r['href']}\n{r['body']}\n") # News search news = DDGS().news("AI agents", max_results=5) # Image search images = DDGS().images("cat meme", max_results=3) ``` ### CLI one-liner ```bash python3 -c " from duckduckgo_search import DDGS for r in DDGS().text('$QUERY', max_results=5): print(f\"{r['title']}\n {r['href']}\n {r['body'][:100]}\n\") " ``` ### Helper script ```bash python3 scripts/web_search.py "your query" --max 5 python3 scripts/web_search.py "AI news" --type news python3 scripts/web_search.py "cat" --type images ``` ## SearXNG (Self-hosted alternative) For privacy or heavy usage, deploy your own SearXNG instance: ```bash # JSON API (no key needed for self-hosted) curl -s "http://localhost:8080/search?q=QUERY&format=json&engines=google,bing,duckduckgo" | python3 -m json.tool ``` Docker deployment: ```bash docker run -d -p 8080:8080 searxng/searxng ``` ## Rate Limits | Service | Limit | Notes | |---------|-------|-------| | DuckDuckGo | ~20-30 req/min | No official limit, be respectful | | SearXNG | Unlimited (self-hosted) | Depends on upstream engines | ## Tips - Use specific queries with operators: `site:github.com Python agent` - For recent results, add year: `"2026" AI agent framework` - DuckDuckGo respects `region` param: `DDGS().text(query, region="cn-zh")`
GitHub에서 보기