360 Secure SkillHub
360 安全技能中心

DuckDuckGo Web Search

通过 Python 脚本 scripts/search.py 调用 ddgs 库在 DuckDuckGo 上执行网页搜索,输入查询词与可选结果数量(默认 5,最大 20),输出每条结果的标题、URL 和摘要文本。无需 API key,属非官方抓取,可能受前端变更或频率限制影响。

neobotjan2026
neobotjan2026
热度 77.60
最近更新 2026-05-11 15:54:37
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add neo-ddg-search
Metadata
name
ddg-search
description
Search the web using DuckDuckGo. Free, no API key required. Use when the user asks to search the web, look something up, find information online, research a topic, or when you need to find current information that isn't in your training data. Also use when web_search tool is unavailable or has no API key configured.

DuckDuckGo Web Search

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

Quick Usage

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

# 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