DuckDuckGo Search via web_fetch Staj
Search the web using DuckDuckGo Lite's HTML interface, parsed via web_fetch. No API key or package install required.
How to Search
CODEBLOCK0
- - URL-encode the query — use
+ for spaces - Use
extractMode="text" (not markdown) for clean results - Increase
maxChars for more results
Region Filtering
Append &kl=REGION for regional results:
- -
au-en — Australia - INLINECODE6 — United States
- INLINECODE7 — United Kingdom
- INLINECODE8 — Germany
- INLINECODE9 — France
Full list: https://duckduckgo.com/params
Example — Australian search
CODEBLOCK1
Reading Results
Results appear as numbered items with title, snippet, and URL. Skip entries marked "Sponsored link" (ads) — organic results follow.
Search-then-Fetch Pattern
- 1. Search — query DDG Lite for a list of results
- Pick — identify the most relevant URLs
- Fetch — use
web_fetch on those URLs to read full content
Tips
- - First 1-2 results may be ads — skip to organic results
- For exact phrases, wrap in quotes: INLINECODE11
- Add specific terms to narrow results (site name, year, location)
Limitations
- - No time/date filtering (DDG Lite doesn't support
&df= reliably via fetch) - Text results only — no images or videos
- Results sourced from Bing (may differ from Google)
- Google search does NOT work via web_fetch (captcha blocked)
技能名称: DuckDuckGo 网页搜索
详细描述:
通过 web_fetch Staj 进行 DuckDuckGo 搜索
使用 DuckDuckGo Lite 的 HTML 界面搜索网络,并通过 web_fetch 解析。无需 API 密钥或安装软件包。
如何搜索
web_fetch(url=https://lite.duckduckgo.com/lite/?q=查询词, extractMode=text, maxChars=8000)
- - 对查询词进行 URL 编码——空格使用 +
- 使用 extractMode=text(而非 markdown)以获得干净的搜索结果
- 增加 maxChars 以获取更多结果
地区筛选
附加 &kl=地区代码 以获取地区性结果:
- - au-en — 澳大利亚
- us-en — 美国
- uk-en — 英国
- de-de — 德国
- fr-fr — 法国
完整列表:https://duckduckgo.com/params
示例——澳大利亚搜索
web_fetch(url=https://lite.duckduckgo.com/lite/?q=best+coffee+melbourne&kl=au-en, extractMode=text, maxChars=8000)
阅读结果
结果以编号项的形式显示,包含标题、摘要和 URL。跳过标记为赞助链接(广告)的条目——自然搜索结果紧随其后。
搜索后抓取模式
- 1. 搜索——查询 DDG Lite 以获取结果列表
- 选择——识别最相关的 URL
- 抓取——使用 web_fetch 读取这些 URL 的完整内容
提示
- - 前 1-2 个结果可能是广告——请跳至自然搜索结果
- 如需精确短语,请用引号包裹:q=%22精确+短语%22
- 添加特定术语以缩小结果范围(网站名称、年份、地点)
局限性
- - 不支持时间/日期筛选(DDG Lite 无法通过 fetch 可靠支持 &df=)
- 仅限文本结果——无图片或视频
- 结果来源于 Bing(可能与 Google 不同)
- Google 搜索无法通过 web_fetch 工作(受验证码阻止)