返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
d

duckduckgo-search

Search the web and fetch URL content using DuckDuckGo. Use when the user wants to search for information online without requiring API keys or paid services. Supports text search with results including title URL and snippet. Also supports URL fetching to extract readable content from web pages. Triggers on phrases like "search for" "look up" "find information about" "fetch url" "get page content" or when web_search is unavailable.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
164
下载量
0
收藏
概述
安装方式
版本历史

duckduckgo-search

# DuckDuckGo Search & Fetch Search the web and fetch URL content using DuckDuckGo (no API key required). ## Prerequisites 需要安装依赖: ```bash pip3 install duckduckgo-search ``` ## 功能 ### 1. 网页搜索 (ddg_search.py) ```bash python3 scripts/ddg_search.py "your search query" [--max-results 10] ``` ### 2. 网页抓取 (ddg_fetch.py) ```bash python3 scripts/ddg_fetch.py "https://example.com" [--timeout 30] ``` ## Usage Examples ### 搜索 ```bash # Basic search python3 scripts/ddg_search.py "OpenClaw AI agent" # Search with more results python3 scripts/ddg_search.py "Python best practices" --max-results 15 ``` ### 抓取网页 ```bash # Fetch a webpage python3 scripts/ddg_fetch.py "https://openclaw.ai" # With custom timeout python3 scripts/ddg_fetch.py "https://example.com" --timeout 15 # Plain text output python3 scripts/ddg_fetch.py "https://example.com" --format text ``` ## Output Format ### 搜索结果 (JSON) ```json { "query": "search query", "count": 10, "results": [ { "title": "Result title", "url": "https://example.com", "snippet": "Description snippet" } ] } ``` ### 抓取结果 (JSON) ```json { "url": "https://example.com", "title": "Page Title", "text": "Extracted readable content...", "description": "Meta description", "status_code": 200, "error": null } ``` ## Integration with OpenClaw Example workflow ```python # Search result = exec({ "command": "python3 /path/to/skills/duckduckgo-search/scripts/ddg_search.py query" }) # Parse: json.loads(result.stdout) # Fetch URL result = exec({ "command": "python3 /path/to/skills/duckduckgo-search/scripts/ddg_fetch.py https://example.com" }) # Parse: json.loads(result.stdout) ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ddg-search-fetch-1776101701 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ddg-search-fetch-1776101701 技能

通过命令行安装

skillhub install ddg-search-fetch-1776101701

下载 Zip 包

⬇ 下载 duckduckgo-search v1.0.1

文件大小: 7.19 KB | 发布时间: 2026-4-17 14:36

v1.0.1 最新 2026-4-17 14:36
Update README with better documentation

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部