ddg-search

TotalClaw 作者 totalclaw

使用 DuckDuckGo 搜索网络。免费,无需 API 密钥。当用户要求搜索网络、查找内容、在线查找信息、研究某个主题时,或者当您需要查找训练数据中没有的当前信息时使用。当 web_search 工具不可用或未配置 API 密钥时也可使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~neobotjan2026-neo-ddg-search
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~neobotjan2026-neo-ddg-search/file -o neobotjan2026-neo-ddg-search.md
## 概述(中文)

使用 DuckDuckGo 搜索网络。免费,无需 API 密钥。当用户要求搜索网络、查找内容、在线查找信息、研究某个主题时,或者当您需要查找训练数据中没有的当前信息时使用。当 web_search 工具不可用或未配置 API 密钥时也可使用。

## 原文

# DuckDuckGo Web Search

Search the web via DuckDuckGo using the `ddgs` Python library. No API key needed.

## Quick Usage

```bash
python3 skills/ddg-search/scripts/search.py "your search query" [count]
```

- `query` (required): Search terms
- `count` (optional): Number of results, default 5, max 20

## Output Format

Each result includes:
- **Title** — Page title
- **URL** — Direct link
- **Snippet** — Text excerpt

## Examples

```bash
# Basic search
python3 skills/ddg-search/scripts/search.py "latest AI news"

# More results
python3 skills/ddg-search/scripts/search.py "Python async tutorial" 10
```

## Follow-up

After searching, use `web_fetch` to read full content from any result URL.

## Dependencies

- `ddgs` Python package (install: `pip install --break-system-packages ddgs`)

## Limitations

- Unofficial scraping — may break if DuckDuckGo changes their frontend
- Rate limits possible under heavy use
- English-biased results by default