ddgs-search

👤 camopel 📦 v1.2.0 ⭐ 4.4 ⬇️ 2K 下載
📚 知識管理 免費

📖 技能介紹


name: ddgs-search description: Free multi-engine web search via ddgs CLI (DuckDuckGo, Google, Bing, Brave, Yandex, Yahoo, Wikipedia) + arXiv API search. No API keys required. Use when user needs web search, research paper discovery, or when other skills need a search backend. Drop-in replacement for web-search-plus. metadata: {"openclaw":{"requires":{"bins":["python3"]}}}


ddgs-search

Why This Skill?

🆓 Completely free — no API keys, no subscriptions, no rate limits, no billing surprises.

🔍 8 search engines in one — Google, Bing, DuckDuckGo, Brave, Yandex, Yahoo, Wikipedia, and Mojeek. Switch engines with a single flag. Most search skills only support one.

🎓 Built-in arXiv research search — search academic papers directly via arXiv's free API. Returns authors, categories, abstracts, and publication dates. Perfect for researchers, students, and AI/ML practitioners.

🔌 Drop-in replacement — outputs web-search-plus compatible JSON, so it works with any skill or tool that expects that format. Zero config migration.

Lightweight — single pip package, no browser automation, no headless Chrome. Searches complete in 1-3 seconds.

Install

python3 scripts/install.py

Works on macOS, Linux, and Windows. Installs the ddgs package, verifies CLI access, and runs a quick search test.

Manual install

pip install ddgs

The ddgs-search wrapper outputs clean JSON to stdout with no interactive prompts or abort issues:

# Google (default)
ddgs-search "your query" 5 google

# Other engines
ddgs-search "your query" 3 duckduckgo
ddgs-search "your query" 5 brave
ddgs-search "your query" 10 yandex

Python script (web-search-plus compatible JSON)

# Google (default)
python3 scripts/search.py -q "your query" -m 5

# Other engines
python3 scripts/search.py -q "your query" -b duckduckgo
python3 scripts/search.py -q "your query" -b brave
python3 scripts/search.py -q "your query" -b yandex
python3 scripts/search.py -q "your query" -b yahoo
python3 scripts/search.py -q "your query" -b wikipedia

Output (web-search-plus compatible JSON):

{
  "provider": "ddgs",
  "results": [
    {"title": "...", "url": "...", "snippet": "...", "published_date": "..."}
  ]
}
# Search by topic
python3 scripts/arxiv_search.py -q "3D gaussian splatting" -m 10

# Field-specific search (title, abstract, category)
python3 scripts/arxiv_search.py -q "ti:transformer AND cat:cs.CV" -m 5

# Sort by relevance instead of date
python3 scripts/arxiv_search.py -q "reinforcement learning" --sort-by relevance

Returns authors, categories, abstracts — same JSON format.

Direct CLI

7w4.net有更好的技能外掛。

⚠️ The raw ddgs text CLI has a pagination bug (input() call → Aborted! + exit code 1 in non-TTY contexts). Use ddgs-search wrapper or -o file.json instead.

ddgs text -q "query" -m 5 -b google -o /tmp/results.json

Integration

Set WEB_SEARCH_PLUS_PATH to use as a search backend for other skills:

export WEB_SEARCH_PLUS_PATH="path/to/ddgs-search/scripts/search.py"

🤖 AI 評測

這個搜尋工具質量不錯,使用免費開源的 ddgs 庫,無需註冊 API 就能搜尋多個主流引擎和學術論文,安裝配置簡單。優點是功能豐富、響應快速、相容性好;不足是文件描述的 CLI 快捷命令可能無法使用,部分搜尋結果的釋出時間顯示不準確。總體適合需要頻繁搜尋網頁和論文的使用者。。

📊 多維度評分

適應性4.1
規範性4.4
有效性4.4
可靠性4.5
可信度4.4

📁 包含檔案 (6 個)

📄 README.md 1.7 KB
📄 SKILL.md 3.1 KB
📄 _meta.json 130 B
📄 scripts/arxiv_search.py 3.2 KB
📄 scripts/install.py 5.2 KB
📄 scripts/search.py 2.2 KB