ddgr by ysm-dev/ddgr-skill
npx skills add https://github.com/ysm-dev/ddgr-skill --skill ddgr使用 ddgr 在终端中搜索 DuckDuckGo。
必须安装 ddgr:brew install ddgr 或 pip install ddgr
ddgr --noua --np --json "搜索查询"
必需参数:
--noua:禁用用户代理(始终使用此参数)--np (noprompt):显示结果后退出,不进入交互式提示--json:以 JSON 格式输出以便解析(隐含 --np)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 参数 | 描述 |
|---|---|
-n N | 结果数量 (0-25,默认 10) |
-t SPAN | 时间过滤器:d (天), w (周), m (月), y (年) |
-w SITE | 在特定网站内搜索 |
-r REG | 区域特定搜索 (例如 us-en, uk-en, in-en) |
-x | 显示完整 URL 而非仅域名 |
-j | "手气不错" - 在浏览器中打开第一个结果 |
-i | 仅获取即时答案 |
--unsafe | 禁用安全搜索 |
--rev | 以相反顺序列出结果 |
-p URI | HTTPS 代理(同时读取 https_proxy 环境变量) |
Bangs 将搜索重定向到其他网站。在 bash/zsh 中转义 !:
ddgr --noua --np \!w "搜索词" # Wikipedia
ddgr --noua --np \!so "python error" # StackOverflow
ddgr --noua --np \!gh "repo name" # GitHub
ddgr --noua --np \!yt "video topic" # YouTube
ddgr --noua --np \!a "product" # Amazon
完整 bang 列表:https://duckduckgo.com/bang
ddgr --noua --np --json "filetype:pdf annual report"
ddgr --noua --np --json "site:reddit.com python tips"
基础搜索:
ddgr --noua --np --json "python asyncio tutorial"
近期结果(上周):
ddgr --noua --np --json -t w "latest news topic"
特定网站搜索:
ddgr --noua --np --json -w stackoverflow.com "parse JSON"
区域特定(印度,英语):
ddgr --noua --np --json -r in-en "IPL cricket"
即时答案:
ddgr --noua --np -i "weather new york"
限制为 5 个结果:
ddgr --noua --np --json -n 5 "quick query"
每个结果包含:
title:页面标题url:完整 URLabstract:描述/摘要片段使用 jq 解析:
ddgr --noua --np --json "query" | jq '.[].title'
ddgr --noua --np --json "query" | jq -r '.[0].url' # 第一个结果的 URL
每周安装次数
156
仓库
GitHub 星标数
3
首次出现
2026年2月3日
安全审计
安装于
opencode137
gemini-cli130
codex130
openclaw130
cursor129
github-copilot127
Search DuckDuckGo from the terminal using ddgr.
ddgr must be installed: brew install ddgr or pip install ddgr
ddgr --noua --np --json "search query"
Required flags:
--noua: Disable user agent (always use this)--np (noprompt): Exit after showing results, no interactive prompt--json: Output in JSON format for parsing (implies --np)| Flag | Description |
|---|---|
-n N | Number of results (0-25, default 10) |
-t SPAN | Time filter: d (day), w (week), m (month), y (year) |
-w SITE | Search within a specific site |
-r REG |
Bangs redirect searches to other sites. Escape ! in bash/zsh:
ddgr --noua --np \!w "search term" # Wikipedia
ddgr --noua --np \!so "python error" # StackOverflow
ddgr --noua --np \!gh "repo name" # GitHub
ddgr --noua --np \!yt "video topic" # YouTube
ddgr --noua --np \!a "product" # Amazon
Full bang list: https://duckduckgo.com/bang
ddgr --noua --np --json "filetype:pdf annual report"
ddgr --noua --np --json "site:reddit.com python tips"
Basic search:
ddgr --noua --np --json "python asyncio tutorial"
Recent results (last week):
ddgr --noua --np --json -t w "latest news topic"
Site-specific search:
ddgr --noua --np --json -w stackoverflow.com "parse JSON"
Region-specific (India, English):
ddgr --noua --np --json -r in-en "IPL cricket"
Instant answer:
ddgr --noua --np -i "weather new york"
Limit to 5 results:
ddgr --noua --np --json -n 5 "quick query"
Each result contains:
title: Page titleurl: Full URLabstract: Description/snippetParse with jq:
ddgr --noua --np --json "query" | jq '.[].title'
ddgr --noua --np --json "query" | jq -r '.[0].url' # First result URL
Weekly Installs
156
Repository
GitHub Stars
3
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
opencode137
gemini-cli130
codex130
openclaw130
cursor129
github-copilot127
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
33,600 周安装
Google Drive 会议纪要知识库:自动解析、结构化存储与智能检索工具
3 周安装
ClawdBot备份技能:一键备份恢复ClawdBot配置,实现多设备同步和版本控制
208 周安装
Wix CLI 后端 API 构建器教程 - 创建 HTTP 端点与 REST API
251 周安装
Vercel React 最佳实践指南:45条性能优化规则,提升Next.js应用性能
251 周安装
Next.js + shadcn/ui 构建器与迁移工具 | 一键创建或系统迁移至现代化前端架构
206 周安装
产品市场契合度(PMF)策略指南:验证、衡量与诊断增长问题
279 周安装
Region-specific search (e.g., us-en, uk-en, in-en) |
-x | Show full URLs instead of domain only |
-j | "I'm Feeling Ducky" - open first result in browser |
-i | Retrieve instant answer only |
--unsafe | Disable safe search |
--rev | List results in reversed order |
-p URI | HTTPS proxy (also reads https_proxy env var) |