关于 desearch-web-search
desearch-web-search 是一项通过 Desearch API 搜索实时网页的技能,适用于需要结构化搜索结果的用户。它返回标题、链接和摘要,并支持分页获取结果。
主要功能
- 01搜索实时网页
- 02返回标题、链接和摘要
- 03通过 --start 分页
- 04使用 DESEARCH_API_KEY 验证
适用场景
- 01查询主题并查看搜索结果摘要
- 02通过分页获取后续结果
- 03将结构化网页结果用于研究
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ desearch-ai/ desearch-openclaw-skills --skill desearch-web-search安装后在 Claude Code 中输入/desearch-web-search确认已加载。
附带文件scripts/desearch.py
详细介绍
Desearch 网页搜索
实时网页搜索,返回包含标题、链接和摘要的结构化 SERP 风格结果。
快速开始
- 从 https://console.desearch.ai 获取 API 密钥
- 设置环境变量:
export DESEARCH_API_KEY='your-key-here'
使用方法
# Basic web search
desearch.py web "quantum computing"
# Paginated results
desearch.py web "quantum computing" --start 10
选项
| 选项 | 描述 |
|---|---|
--start | 分页偏移量(默认值:0)。用于获取下一页结果。 |
响应
示例
desearch.py web "best sights in Georgia"
{
"data": [
{
"title": "Cool places and fun things to do in Georgia ? : r/solotravel",
"snippet": "I was in Georgia earlier this month. My favorite place was Mtirala National Park in Adjara. The mountains and forest were absolutely beautiful ...",
"link": "https://www.reddit.com/r/solotravel/comments/py4wls/cool_places_and_fun_things_to_do_in_georgia/",
},
]
}
注意事项
- 每页最多返回 10 条结果。使用
--start翻页。
错误
状态码 401,未经授权(例如,缺少或 API 密钥无效)
{
"detail": "Invalid or missing API key"
}
状态码 402,需要付款(例如,余额不足)
{
"detail": "Insufficient balance, please add funds to your account to continue using the service."
}
资源
评论
支持 Markdown