/install ddg-search-fetch
DuckDuckGo Search & Fetch
Search the web and fetch URL content using DuckDuckGo (no API key required).
Prerequisites
需要安装依赖:
pip3 install duckduckgo-search
功能
1. 网页搜索 (ddg_search.py)
python3 scripts/ddg_search.py "your search query" [--max-results 10]
2. 网页抓取 (ddg_fetch.py)
python3 scripts/ddg_fetch.py "https://example.com" [--timeout 30]
Usage Examples
搜索
# Basic search
python3 scripts/ddg_search.py "OpenClaw AI agent"
# Search with more results
python3 scripts/ddg_search.py "Python best practices" --max-results 15
抓取网页
# Fetch a webpage
python3 scripts/ddg_fetch.py "https://openclaw.ai"
# With custom timeout
python3 scripts/ddg_fetch.py "https://example.com" --timeout 15
# Plain text output
python3 scripts/ddg_fetch.py "https://example.com" --format text
Output Format
搜索结果 (JSON)
{
"query": "search query",
"count": 10,
"results": [
{
"title": "Result title",
"url": "https://example.com",
"snippet": "Description snippet"
}
]
}
抓取结果 (JSON)
{
"url": "https://example.com",
"title": "Page Title",
"text": "Extracted readable content...",
"description": "Meta description",
"status_code": 200,
"error": null
}
Integration with OpenClaw
Example workflow
# Search
result = exec({
"command": "python3 /path/to/skills/duckduckgo-search/scripts/ddg_search.py query"
})
# Parse: json.loads(result.stdout)
# Fetch URL
result = exec({
"command": "python3 /path/to/skills/duckduckgo-search/scripts/ddg_fetch.py https://example.com"
})
# Parse: json.loads(result.stdout)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ddg-search-fetch - After installation, invoke the skill by name or use
/ddg-search-fetch - Provide required inputs per the skill's parameter spec and get structured output
What is Ddg Search Fetch?
Search the web and fetch URL content using DuckDuckGo. Use when the user wants to search for information online without requiring API keys or paid services.... It is an AI Agent Skill for Claude Code / OpenClaw, with 233 downloads so far.
How do I install Ddg Search Fetch?
Run "/install ddg-search-fetch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Ddg Search Fetch free?
Yes, Ddg Search Fetch is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Ddg Search Fetch support?
Ddg Search Fetch is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Ddg Search Fetch?
It is built and maintained by mengbin92 (@mengbin92); the current version is v1.0.1.