360 Secure SkillHub
360 安全技能中心

DuckDuckGo Web Search

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

分类:搜索
neobotjan2026
neobotjan2026
热度 58.66
最近更新 2026-05-11 15:54:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add neobotjan2026/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