{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ddgs",
    "name": "ddgs (DuckDuckGo Search)",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/idkwhodatis/ddgs",
    "canonicalUrl": "https://clawhub.ai/idkwhodatis/ddgs",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ddgs",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ddgs",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ddgs"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ddgs",
    "agentPageUrl": "https://openagent3.xyz/skills/ddgs/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ddgs/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ddgs/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "DDGS Web Search Skill",
        "body": "This skill implements web search functionality via the DDGS (Dux Distributed Global Search) engine, aggregating results from diverse search services to fetch real-time information."
      },
      {
        "title": "Features",
        "body": "🔍 Privacy-friendly metasearch\n📰 News search support\n🖼️ Image search support\n📹 Video search support\n📚 Books search support\n🌐 Free to use, no API Key required\n🔒 Privacy protection, no user tracking\n⚡ MCP (Model Context Protocol) and API server support"
      },
      {
        "title": "Installation",
        "body": "# Install via uv (Recommended)\r\nuv pip install ddgs\r\n\r\n# Or install via pip\r\npip install ddgs"
      },
      {
        "title": "1. Text Search",
        "body": "The most commonly used search method, returning webpage results:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nquery = 'your search query'\r\n\r\nresults = DDGS().text(\r\n    query,\r\n    region='wt-wt',        # Region: cn-zh (China), us-en (US), wt-wt (Global)\r\n    safesearch='moderate', # Safe search: on, moderate, off\r\n    timelimit='m',         # Time range: d (day), w (week), m (month), y (year), None (unlimited)\r\n    max_results=10,        # Maximum number of results\r\n    backend='auto'         # Backends: auto, duckduckgo, brave, bing, etc.\r\n)\r\n\r\nfor i, r in enumerate(results, 1):\r\n    print(f\\\"{i}. {r.get('title')}\\\")\r\n    print(f\\\"   URL: {r.get('href')}\\\")\r\n    print(f\\\"   Snippet: {str(r.get('body'))[:100]}...\\n\\\")\r\n\""
      },
      {
        "title": "2. News Search",
        "body": "Search for the latest news:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().news(\r\n    'AI technology',\r\n    region='wt-wt',\r\n    safesearch='moderate',\r\n    timelimit='d',       # d=past 24 hours, w=past week, m=past month\r\n    max_results=10\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"📰 {r.get('title')}\\\")\r\n    print(f\\\"   Source: {r.get('source')}\\\")\r\n    print(f\\\"   Date: {r.get('date')}\\\")\r\n    print(f\\\"   Link: {r.get('url')}\\n\\\")\r\n\""
      },
      {
        "title": "3. Image Search",
        "body": "Search for image resources:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().images(\r\n    'cute cats',\r\n    region='wt-wt',\r\n    safesearch='moderate',\r\n    size='Medium',       # Small, Medium, Large, Wallpaper\r\n    type_image='photo',  # photo, clipart, gif, transparent, line\r\n    layout='Square',     # Square, Tall, Wide\r\n    max_results=10\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"🖼️ {r.get('title')}\\\")\r\n    print(f\\\"   Image: {r.get('image')}\\\")\r\n    print(f\\\"   Thumbnail: {r.get('thumbnail')}\\\")\r\n    print(f\\\"   Source: {r.get('source')}\\n\\\")\r\n\""
      },
      {
        "title": "4. Video Search",
        "body": "Search for video content:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().videos(\r\n    'Python programming',\r\n    region='wt-wt',\r\n    safesearch='moderate',\r\n    timelimit='w',       # d, w, m\r\n    resolution='high',   # high, standard\r\n    duration='medium',   # short, medium, long\r\n    max_results=10\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"📹 {r.get('title')}\\\")\r\n    print(f\\\"   Duration: {r.get('duration', 'N/A')}\\\")\r\n    print(f\\\"   Publisher: {r.get('publisher')}\\\")\r\n    print(f\\\"   Link: {r.get('content')}\\n\\\")\r\n\""
      },
      {
        "title": "5. Books Search",
        "body": "Search for books:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().books(\r\n    'sea wolf jack london',\r\n    max_results=5\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"📚 {r.get('title')}\\\")\r\n    print(f\\\"   Author: {r.get('author')}\\\")\r\n    print(f\\\"   Publisher: {r.get('publisher')}\\\")\r\n    print(f\\\"   Link: {r.get('link')}\\n\\\")\r\n\""
      },
      {
        "title": "Reusable Search Function",
        "body": "python -c \"\r\nfrom ddgs import DDGS\r\n\r\ndef web_search(query, search_type='text', max_results=5, region='wt-wt', timelimit=None):\r\n    '''\r\n    Execute DDGS search\r\n    \r\n    Args:\r\n        query: Search keyword\r\n        search_type: text, news, images, videos, books\r\n        max_results: Maximum results\r\n        region: Region (cn-zh, us-en, wt-wt)\r\n        timelimit: Time limit (d, w, m, y)\r\n    '''\r\n    ddgs = DDGS()\r\n    if search_type == 'text':\r\n        return list(ddgs.text(query, region=region, timelimit=timelimit, max_results=max_results))\r\n    elif search_type == 'news':\r\n        return list(ddgs.news(query, region=region, timelimit=timelimit, max_results=max_results))\r\n    elif search_type == 'images':\r\n        return list(ddgs.images(query, region=region, max_results=max_results))\r\n    elif search_type == 'videos':\r\n        return list(ddgs.videos(query, region=region, timelimit=timelimit, max_results=max_results))\r\n    elif search_type == 'books':\r\n        return list(ddgs.books(query, max_results=max_results))\r\n    return []\r\n\r\nresults = web_search('Python 3.12 new features', max_results=5)\r\nprint(f'📊 Found {len(results)} results')\r\n\""
      },
      {
        "title": "Region Codes (region)",
        "body": "CodeRegioncn-zhChinaus-enUnited Statesuk-enUnited Kingdomjp-jpJapankr-krSouth Koreawt-wtGlobal (No region limit)"
      },
      {
        "title": "Time Limit (timelimit)",
        "body": "ValueMeaningdPast 24 hourswPast weekmPast monthyPast yearNoneNo limit"
      },
      {
        "title": "Safe Search (safesearch)",
        "body": "ValueMeaningonStrict filteringmoderateModerate filtering (Default)offFiltering disabled"
      },
      {
        "title": "Basic Error Handling",
        "body": "python -c \"\r\nfrom ddgs import DDGS\r\nfrom ddgs.exceptions import DDGSException\r\n\r\ntry:\r\n    results = DDGS().text('test query', max_results=5)\r\n    print(f'✅ Search successful, found {len(results)} results')\r\nexcept DDGSException as e:\r\n    print(f'❌ Search error: {e}')\r\nexcept Exception as e:\r\n    print(f'❌ Unknown error: {e}')\r\n\""
      },
      {
        "title": "Using Proxies",
        "body": "python -c \"\r\nfrom ddgs import DDGS\r\n\r\n# Set proxy (supports http/https/socks5)\r\nproxy = 'http://127.0.0.1:7890'  \r\n\r\nresults = DDGS(proxy=proxy).text('test query', max_results=5)\r\nprint(f'Successfully searched via proxy, found {len(results)} results')\r\n\""
      },
      {
        "title": "FAQ",
        "body": "Installation Failed?\n\npip install --upgrade pip\r\npip install ddgs\n\nNo Results Found?\n\nCheck your network connection.\nTry using a proxy.\nSimplify your search query.\nVerify that your region settings are correct.\n\nRate Limited?\n\nAdd a delay between multiple requests (e.g., import time; time.sleep(1)).\nReduce the max_results per request."
      },
      {
        "title": "Integration Example",
        "body": "# 1. Search with DDGS\r\npython -c \"\r\nfrom ddgs import DDGS\r\nresults = DDGS().text('Python async tutorial', max_results=1)\r\nif results:\r\n    print(f\\\"URL: {results[0].get('href')}\\\")\r\n\"\r\n\r\n# 2. Open result with your browser-use tool\r\nbrowser-use open <url_from_search>\n\n⚠️ Best Practices:\n\nRespect Rate Limits: Avoid sending a massive volume of requests in a short period.\nOptimize Results: Do not request more results than necessary in a single query.\nAdd Delays: Use time.sleep() when executing batch searches.\nHandle Exceptions: Always wrap your API calls in try/except blocks.\nCopyright Awareness: Search results are for reference only; respect the copyright of the indexed content."
      }
    ],
    "body": "DDGS Web Search Skill\n\nThis skill implements web search functionality via the DDGS (Dux Distributed Global Search) engine, aggregating results from diverse search services to fetch real-time information.\n\nFeatures\n\n🔍 Privacy-friendly metasearch\n📰 News search support\n🖼️ Image search support\n📹 Video search support\n📚 Books search support\n🌐 Free to use, no API Key required\n🔒 Privacy protection, no user tracking\n⚡ MCP (Model Context Protocol) and API server support\n\nInstallation\n# Install via uv (Recommended)\r\nuv pip install ddgs\r\n\r\n# Or install via pip\r\npip install ddgs\n\nQuick Start\n1. Text Search\n\nThe most commonly used search method, returning webpage results:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nquery = 'your search query'\r\n\r\nresults = DDGS().text(\r\n    query,\r\n    region='wt-wt',        # Region: cn-zh (China), us-en (US), wt-wt (Global)\r\n    safesearch='moderate', # Safe search: on, moderate, off\r\n    timelimit='m',         # Time range: d (day), w (week), m (month), y (year), None (unlimited)\r\n    max_results=10,        # Maximum number of results\r\n    backend='auto'         # Backends: auto, duckduckgo, brave, bing, etc.\r\n)\r\n\r\nfor i, r in enumerate(results, 1):\r\n    print(f\\\"{i}. {r.get('title')}\\\")\r\n    print(f\\\"   URL: {r.get('href')}\\\")\r\n    print(f\\\"   Snippet: {str(r.get('body'))[:100]}...\\n\\\")\r\n\"\n\n2. News Search\n\nSearch for the latest news:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().news(\r\n    'AI technology',\r\n    region='wt-wt',\r\n    safesearch='moderate',\r\n    timelimit='d',       # d=past 24 hours, w=past week, m=past month\r\n    max_results=10\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"📰 {r.get('title')}\\\")\r\n    print(f\\\"   Source: {r.get('source')}\\\")\r\n    print(f\\\"   Date: {r.get('date')}\\\")\r\n    print(f\\\"   Link: {r.get('url')}\\n\\\")\r\n\"\n\n3. Image Search\n\nSearch for image resources:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().images(\r\n    'cute cats',\r\n    region='wt-wt',\r\n    safesearch='moderate',\r\n    size='Medium',       # Small, Medium, Large, Wallpaper\r\n    type_image='photo',  # photo, clipart, gif, transparent, line\r\n    layout='Square',     # Square, Tall, Wide\r\n    max_results=10\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"🖼️ {r.get('title')}\\\")\r\n    print(f\\\"   Image: {r.get('image')}\\\")\r\n    print(f\\\"   Thumbnail: {r.get('thumbnail')}\\\")\r\n    print(f\\\"   Source: {r.get('source')}\\n\\\")\r\n\"\n\n4. Video Search\n\nSearch for video content:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().videos(\r\n    'Python programming',\r\n    region='wt-wt',\r\n    safesearch='moderate',\r\n    timelimit='w',       # d, w, m\r\n    resolution='high',   # high, standard\r\n    duration='medium',   # short, medium, long\r\n    max_results=10\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"📹 {r.get('title')}\\\")\r\n    print(f\\\"   Duration: {r.get('duration', 'N/A')}\\\")\r\n    print(f\\\"   Publisher: {r.get('publisher')}\\\")\r\n    print(f\\\"   Link: {r.get('content')}\\n\\\")\r\n\"\n\n5. Books Search\n\nSearch for books:\n\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\nresults = DDGS().books(\r\n    'sea wolf jack london',\r\n    max_results=5\r\n)\r\n\r\nfor r in results:\r\n    print(f\\\"📚 {r.get('title')}\\\")\r\n    print(f\\\"   Author: {r.get('author')}\\\")\r\n    print(f\\\"   Publisher: {r.get('publisher')}\\\")\r\n    print(f\\\"   Link: {r.get('link')}\\n\\\")\r\n\"\n\nPractical Scripts\nReusable Search Function\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\ndef web_search(query, search_type='text', max_results=5, region='wt-wt', timelimit=None):\r\n    '''\r\n    Execute DDGS search\r\n    \r\n    Args:\r\n        query: Search keyword\r\n        search_type: text, news, images, videos, books\r\n        max_results: Maximum results\r\n        region: Region (cn-zh, us-en, wt-wt)\r\n        timelimit: Time limit (d, w, m, y)\r\n    '''\r\n    ddgs = DDGS()\r\n    if search_type == 'text':\r\n        return list(ddgs.text(query, region=region, timelimit=timelimit, max_results=max_results))\r\n    elif search_type == 'news':\r\n        return list(ddgs.news(query, region=region, timelimit=timelimit, max_results=max_results))\r\n    elif search_type == 'images':\r\n        return list(ddgs.images(query, region=region, max_results=max_results))\r\n    elif search_type == 'videos':\r\n        return list(ddgs.videos(query, region=region, timelimit=timelimit, max_results=max_results))\r\n    elif search_type == 'books':\r\n        return list(ddgs.books(query, max_results=max_results))\r\n    return []\r\n\r\nresults = web_search('Python 3.12 new features', max_results=5)\r\nprint(f'📊 Found {len(results)} results')\r\n\"\n\nParameters Explained\nRegion Codes (region)\nCode\tRegion\ncn-zh\tChina\nus-en\tUnited States\nuk-en\tUnited Kingdom\njp-jp\tJapan\nkr-kr\tSouth Korea\nwt-wt\tGlobal (No region limit)\nTime Limit (timelimit)\nValue\tMeaning\nd\tPast 24 hours\nw\tPast week\nm\tPast month\ny\tPast year\nNone\tNo limit\nSafe Search (safesearch)\nValue\tMeaning\non\tStrict filtering\nmoderate\tModerate filtering (Default)\noff\tFiltering disabled\nError Handling & Proxies\nBasic Error Handling\npython -c \"\r\nfrom ddgs import DDGS\r\nfrom ddgs.exceptions import DDGSException\r\n\r\ntry:\r\n    results = DDGS().text('test query', max_results=5)\r\n    print(f'✅ Search successful, found {len(results)} results')\r\nexcept DDGSException as e:\r\n    print(f'❌ Search error: {e}')\r\nexcept Exception as e:\r\n    print(f'❌ Unknown error: {e}')\r\n\"\n\nUsing Proxies\npython -c \"\r\nfrom ddgs import DDGS\r\n\r\n# Set proxy (supports http/https/socks5)\r\nproxy = 'http://127.0.0.1:7890'  \r\n\r\nresults = DDGS(proxy=proxy).text('test query', max_results=5)\r\nprint(f'Successfully searched via proxy, found {len(results)} results')\r\n\"\n\nFAQ\n\nInstallation Failed?\n\npip install --upgrade pip\r\npip install ddgs\n\n\nNo Results Found?\n\nCheck your network connection.\nTry using a proxy.\nSimplify your search query.\nVerify that your region settings are correct.\n\nRate Limited?\n\nAdd a delay between multiple requests (e.g., import time; time.sleep(1)).\nReduce the max_results per request.\nIntegration & Notes\nIntegration Example\n# 1. Search with DDGS\r\npython -c \"\r\nfrom ddgs import DDGS\r\nresults = DDGS().text('Python async tutorial', max_results=1)\r\nif results:\r\n    print(f\\\"URL: {results[0].get('href')}\\\")\r\n\"\r\n\r\n# 2. Open result with your browser-use tool\r\nbrowser-use open <url_from_search>\n\n\n⚠️ Best Practices:\n\nRespect Rate Limits: Avoid sending a massive volume of requests in a short period.\nOptimize Results: Do not request more results than necessary in a single query.\nAdd Delays: Use time.sleep() when executing batch searches.\nHandle Exceptions: Always wrap your API calls in try/except blocks.\nCopyright Awareness: Search results are for reference only; respect the copyright of the indexed content."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/idkwhodatis/ddgs",
    "publisherUrl": "https://clawhub.ai/idkwhodatis/ddgs",
    "owner": "idkwhodatis",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ddgs",
    "downloadUrl": "https://openagent3.xyz/downloads/ddgs",
    "agentUrl": "https://openagent3.xyz/skills/ddgs/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ddgs/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ddgs/agent.md"
  }
}