安全扫描
OpenClaw
安全
high confidence该技能的代码和指令与其所述目的(百度搜索)一致,它使用百度API进行交互,请求适当的配置,不请求无关的凭证或意外端点。
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/3/5
初始版本,支持百度搜索
● 无害
安装命令
点击复制官方npx clawhub@latest install baidu-search-1-1-0
🇨🇳 镜像加速npx clawhub@latest install baidu-search-1-1-0 --registry https://cn.longxiaskill.com
技能文档
Search the web via Baidu AI Search API.
Usage
python3 skills/baidu-search/scripts/search.py ''
请求 Parameters
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
| query | str | yes | - | Search query |
| edition | str | no | standard | standard (full) or lite (light) |
| resource_type_filter | list[obj] | no | web:20, others:0 | Resource types: web (max 50), video (max 10), image (max 30), aladdin (max 5) |
| search_filter | obj | no | - | Advanced filters (see below) |
| block_websites | list[str] | no | - | Sites to block, e.g. ["tieba.baidu.com"] |
| search_recency_filter | str | no | - | Time filter: week, month, semiyear, year |
| safe_search | bool | no | false | Enable strict content filtering |
SearchFilter
| Param | Type | Description |
|---|---|---|
| match.site | list[str] | Limit search to specific sites, e.g. ["baike.baidu.com"] |
| range.pageTime | obj | Date range for page_time field (see below) |
日期 Range 格式
Fixed date: YYYY-MM-DD
Relative time (from current day): now-1w/d, now-1M/d, now-1y/d
| Operator | Meaning |
|---|---|
| gte | Greater or equal (start) |
| lte | Less or equal (end) |
Examples
# Basic search
python3 skills/baidu-search/scripts/search.py '{"query":"人工智能"}'# Filter by time and site
python3 skills/baidu-search/scripts/search.py '{
"query":"最新新闻",
"search_recency_filter":"week",
"search_filter":{"match":{"site":["news.baidu.com"]}}
}'
# Resource type filter
python3 skills/baidu-search/scripts/search.py '{
"query":"旅游景点",
"resource_type_filter":[{"type":"web","top_k":20},{"type":"video","top_k":5}]
}'
Current Status
Fully functional.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库