Baidu Web Search
Search the web via the Turing Baidu proxy API.
Usage
CODEBLOCK0
Request Parameters
| Param | Type | Required | Default | Description |
|---|
| INLINECODE0 | INLINECODE1 | yes | — | Search query |
| INLINECODE2 |
int | no |
10 | Number of results to return |
|
search_recency_filter |
str | no | — | Recency filter:
week (7d),
month (30d),
semiyear (180d),
year (365d) |
Response Fields
| Field | Type | Description |
|---|
| INLINECODE11 | INLINECODE12 | Rank of the result |
| INLINECODE13 |
str | Page title |
|
results[].url |
str | Page URL |
|
results[].website |
str | Source website name |
|
results[].content |
str | Content snippet |
|
results[].date |
str | Publication date |
|
results[].type |
str | Content type (e.g.
web,
news) |
Examples
CODEBLOCK1
Configuration
Set in openclaw.json under skills.entries.turing-skills.env:
| Variable | Required | Description |
|---|
| INLINECODE29 | yes | Bearer token (sk-...) |
| INLINECODE31 |
yes | Client identifier |
|
TURING_ENVIRONMENT | yes | Environment name |
|
TURING_API_BASE | no | API base URL (default:
https://live-turing.cn.llm.tcljd.com) |
百度网页搜索
通过图灵百度代理API搜索网页。
使用方法
bash
python3 ~/.openclaw/skills/turing-baidu-web-search/scripts.py
请求参数
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|
| q | str | 是 | — | 搜索查询 |
| count |
int | 否 | 10 | 返回结果数量 |
| search
recencyfilter | str | 否 | — | 时间筛选:week(7天)、month(30天)、semiyear(180天)、year(365天) |
响应字段
| 字段 | 类型 | 描述 |
|---|
| results[].id | int | 结果排名 |
| results[].title |
str | 页面标题 |
| results[].url | str | 页面URL |
| results[].website | str | 来源网站名称 |
| results[].content | str | 内容摘要 |
| results[].date | str | 发布日期 |
| results[].type | str | 内容类型(例如 web、news) |
示例
bash
基础搜索
python3 ~/.openclaw/skills/turing-baidu-web-search/scripts.py {q: 今日A股行情}
限制结果数量
python3 ~/.openclaw/skills/turing-baidu-web-search/scripts.py {q: 今日A股行情, count: 5}
仅返回近期结果(最近7天)
python3 ~/.openclaw/skills/turing-baidu-web-search/scripts.py {q: 中证A50最新消息, count: 10, search
recencyfilter: week}
配置
在 openclaw.json 的 skills.entries.turing-skills.env 中设置:
| 变量 | 必填 | 描述 |
|---|
| TURINGAPIKEY | 是 | Bearer令牌(sk-...) |
| TURING_CLIENT |
是 | 客户端标识符 |
| TURING_ENVIRONMENT | 是 | 环境名称 |
| TURING
APIBASE | 否 | API基础URL(默认:https://live-turing.cn.llm.tcljd.com) |