← 返回
开发者工具 中文

Duckduckgo Websearch

Perform private, high-quality web searches using DuckDuckGo's Instant Answer API with fallback to scrape top 5 links and summaries without requiring API keys.
使用 DuckDuckGo 即时答案 API 执行私密、高质量的网络搜索,若失败则回退至抓取前 5 条链接和摘要,无需 API 密钥。
ianwchoi
开发者工具 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 1
Stars
📥 1,275
下载
💾 21
安装
1
版本
#latest

概述

DuckDuckGo Websearch Skill

Purpose

  • Provide a stable, privacy-minded websearch skill using DuckDuckGo's Instant Answer JSON API as primary source and a lightweight HTML SERP scrape as a fallback for richer link lists.
  • Return structured results: concise summary (if available), top 5 links with titles and snippets, and optional short summary of a landed page when requested.

When to use

  • Use this skill when the user asks to "search the web", "find links about X", "summarize search results for Y", or any task requiring quick web lookup without paid search APIs.
  • Prefer the skill when privacy-friendly sources are acceptable and rate limits / API keys for other search providers are unavailable.

Design principles

  • Progressive disclosure: SKILL.md contains the trigger and workflow. Detailed parsing and helpers are in scripts/ so the agent can execute them without loading large text.
  • Fail gracefully: if Instant Answer returns limited data, the skill falls back to a minimal HTML fetch-and-parse to extract top results.
  • Safety: avoid returning raw HTML; always sanitize snippets and obey robots (basic checks).

Bundled resources

  • scripts/ddg_search.js — Node script that performs the search and returns JSON (summary, links[]). Executable by the agent when the skill is invoked.
  • references/usage_examples.md — short examples of prompts that should trigger this skill.

Outputs

  • JSON shape returned from scripts/ddg_search.js:

{

"query": "...",

"summary": "short abstract or empty",

"links": [ {"title":"...","url":"...","snippet":"..."}, ... up to 5],

"source": "instant-answer|serp-fallback",

"notes": "any warnings"

}

Security & limits

  • The script uses DuckDuckGo's public instant-answer endpoint (no key). For many queries this is enough; for others the SERP fallback will perform a lightweight HTML request. Respect rate limits and avoid heavy scraping.
  • Do not follow or fetch pages that explicitly disallow crawling via robots.txt for automation-intended user agents.

Installation / Usage (for maintainer)

  1. Place this skill in ~/.openclaw/workspace/skills/duckduckgo-websearch
  2. Ensure node is available (Node 18+). The script has zero external dependencies (uses built-in https/http and node-html-parser).
  3. Test manually:

node scripts/ddg_search.js "query terms"

Trigger examples (see references/usage_examples.md)

  • "Search DuckDuckGo for recent news about [topic] and give me top links."
  • "Find the best tutorials for Django channels and summarize top results."

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 10:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,414
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,352
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,462