Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

ddgs-search-apiddgs 搜索 API

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

9,964

周安装

428

GitHub Stars

公开资料未说明

下载量

3,492
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ddgs-search-api(ddgs 搜索 API)
来源仓库:https://github.com/bird-frank/ddgs-search-api
安装命令:
openclaw skills install ddgs-search-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ddgs-search-api

简介

当需要在 AI 编码工具或 OpenClaw 中搜索网络时使用。使用 DuckDuckGo API,无需 API 密钥。

SKILL.md

name
ddgs-web-search
description
Use when needing to search the web in AI coding tools or OpenClaw. Uses DuckDuckGo API without API key.

DuckDuckGo Web Search Skill

An Agent Skill for searching web content via DuckDuckGo.

Overview

This Skill provides a command-line tool for web search using the ddgs Python package. Suitable for:

  • Real-time web information needs in AI coding tools
  • Fetching search results in OpenClaw workflows

Core Features

  • Web Search: General web search
  • News Search: Dedicated news content search
  • Multiple Output Formats: Text or JSON format
  • Flexible Configuration: Region, time limits, and safe search level
  • Proxy Support: HTTP/HTTPS/SOCKS5 proxy via CLI args or environment variables

Installation

This project uses uv as the Python package manager.

Option 1: Run with uv (Recommended)

# Run the script directly (uv will auto-install dependencies)
uv run scripts/ddgs_search.py "Python programming"

# Or navigate to the directory first
cd skills/ddgs-search
uv run scripts/ddgs_search.py "machine learning"

Option 2: Manual Dependency Installation

# Install dependencies using uv
uv pip install ddgs

# Or use pip
pip install ddgs

Quick Start

Basic Usage

# Run with uv (recommended)
uv run scripts/ddgs_search.py "Python programming"

# Limit the number of results
uv run scripts/ddgs_search.py "machine learning" --max-results 5

# Search news
uv run scripts/ddgs_search.py "tech news" --news

# JSON output (for programmatic parsing)
uv run scripts/ddgs_search.py "API documentation" --json

# Time limit (today)
uv run scripts/ddgs_search.py "breaking news" --timelimit d

Complete Parameter Reference

ParameterShortDescriptionDefault
query-Search keywordsRequired
--max-results-nMaximum number of results10
--region-rRegion codewt-wt
--safesearch-sSafe search (on/moderate/off)moderate
--timelimit-tTime limit (d/w/m/y)-
--backend-bSearch backend (auto/html/lite)auto
--proxy-pProxy server (http/https/socks5)-
--news-Search news-
--json-jJSON format output-
--verbose-vShow detailed information-

Proxy Configuration

Proxy settings are resolved in the following priority order:

  1. Command line: --proxy / -p
  2. Environment variable: HTTP_PROXY or http_proxy
  3. Environment variable: DDGS_PROXY

Proxy format examples:

  • http://proxy.example.com:8080
  • http://user:pass@proxy.example.com:8080
  • socks5://127.0.0.1:9150 (Tor Browser)
  • socks5h://user:password@geo.iproyal.com:32325

Region Code Examples

  • wt-wt - Worldwide (default)
  • us-en - United States English
  • cn-zh - China Chinese
  • jp-jp - Japan
  • uk-en - United Kingdom

Time Limits

  • d - Past day
  • w - Past week
  • m - Past month
  • y - Past year

Usage in OpenClaw

In OpenClaw workflows, you can invoke it via the bash tool:

# Example workflow step
- name: search_web
  tool: bash
  command: cd skills/ddgs-search && uv run scripts/ddgs_search.py "{{ query }}" --json

Or using the Python tool:

# Assuming the current directory is the project root
import subprocess
import json

result = subprocess.run(
    ["uv", "run", "skills/ddgs-search/scripts/ddgs_search.py", "Python tips", "--json"],
    capture_output=True,
    text=True
)
data = json.loads(result.stdout)

Return Result Format

Web Search Results

[
  {
    "title": "Result Title",
    "href": "https://example.com/page",
    "body": "Page snippet/description..."
  }
]

News Search Results

[
  {
    "title": "News Headline",
    "href": "https://news.example.com/article",
    "body": "Article summary...",
    "date": "2024-01-15",
    "source": "News Source Name"
  }
]

Usage Examples

Example 1: Search Technical Documentation

uv run scripts/ddgs_search.py "FastAPI documentation" -n 5

Example 2: Get Latest News

uv run scripts/ddgs_search.py "artificial intelligence" --news -t d -n 3

Example 3: Chinese Search

uv run scripts/ddgs_search.py "机器学习教程" -r cn-zh -n 8

Example 4: JSON Output Processing

uv run scripts/ddgs_search.py "python tips" --json | jq '.[0].href'

Example 5: Using Proxy

# Via command line argument
uv run scripts/ddgs_search.py "query" --proxy http://1.2.3.4:8080

# Via HTTP_PROXY environment variable
export HTTP_PROXY="http://proxy.example.com:8080"
uv run scripts/ddgs_search.py "query"

# Via DDGS_PROXY environment variable
export DDGS_PROXY="socks5://127.0.0.1:9150"
uv run scripts/ddgs_search.py "query"

FAQ

uv Not Installed

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

ImportError: No module named 'ddgs'

# Install using uv
uv pip install ddgs

# Or run in the script directory (uv will auto-handle)
cd skills/ddgs-search
uv run scripts/ddgs_search.py "query"

Empty Search Results

  • Check network connection
  • Try changing the --backend parameter (auto/html/lite)
  • Some regions may require a proxy (see Proxy Configuration)

Proxy Not Working

  • Verify proxy format: http://host:port or socks5://host:port
  • Check if authentication is required: http://user:pass@host:port
  • Ensure the proxy server is accessible from your network
  • Try using HTTP_PROXY environment variable instead of command line argument

Rate Limiting

DuckDuckGo has implicit rate limiting. If frequent requests fail:

  • Reduce request frequency
  • Add delays between requests
  • Use a different backend

Dependencies

  • Python 3.9+
  • uv (package manager)
  • ddgs >= 8.0.0

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

79.14%
按下载量换算2,764

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills