ddgr-web-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDDGR Web Search (JSON)
DDGR 网页搜索(JSON格式)
Overview
概述
Use to fetch search results as structured JSON, then extract only the minimal fields needed for the task.
ddgr "query" --json使用以结构化JSON格式获取搜索结果,然后提取任务所需的最少字段。
ddgr "query" --jsonWorkflow
工作流程
- Run a JSON search (non-interactive).
bash
ddgr "cli websearch" --json- If you need fewer/more results or filters, add options:
bash
ddgr "cli websearch" --json -n 5
ddgr "cli websearch" --json -t w
ddgr "cli websearch" --json -w "example.com"
ddgr "cli websearch" --json -r "us-en"- Summarize or cite results using only a small subset of entries. Avoid copying full JSON into context.
- 运行JSON格式搜索(非交互式)。
bash
ddgr "cli websearch" --json- 如果需要调整结果数量或添加筛选条件,使用以下选项:
bash
ddgr "cli websearch" --json -n 5
ddgr "cli websearch" --json -t w
ddgr "cli websearch" --json -w "example.com"
ddgr "cli websearch" --json -r "us-en"- 仅使用少量条目来总结或引用结果,避免将完整JSON复制到上下文当中。
Useful Options (Non-Exhaustive)
实用选项(非完整列表)
- : output results as JSON
--json - : results per page (0-25)
-n N - : time filter (day/week/month/year)
-t d|w|m|y - : restrict to a site/domain
-w SITE - : region code (e.g.,
-r REG)us-en - : disable safe search if needed
--unsafe - : expand full URLs
-x - : use HTTPS proxy
--proxy URI
- : 以JSON格式输出结果
--json - : 每页结果数量(0-25)
-n N - : 时间筛选(日/周/月/年)
-t d|w|m|y - : 限制搜索站点/域名
-w SITE - : 地区代码(例如
-r REG)us-en - : 必要时禁用安全搜索
--unsafe - : 展开完整URL
-x - : 使用HTTPS代理
--proxy URI