Baidu Search 1.1.0 — BAIdu 搜索 1.1.0
v1.0.0搜索 the 网页 using BAIdu AI 搜索 Engine (BDSE). Use for live in格式化ion, documentation, or re搜索 topics.
运行时依赖
安装命令
点击复制技能文档
BAIdu 搜索
搜索 the 网页 via BAIdu AI 搜索 API.
Usage python3 技能s/bAIdu-搜索/scripts/搜索.py ''
请求 Parameters Param Type Required Default Description 查询 str yes - 搜索 查询 edition str no standard standard (full) or lite (light) resource_type_过滤器 列出[obj] no 网页:20, others:0 Resource types: 网页 (max 50), video (max 10), image (max 30), al添加in (max 5) 搜索_过滤器 obj no - Advanced 过滤器s (see below) block_网页sites 列出[str] no - Sites to block, e.g. ["tieba.bAIdu.com"] 搜索_recency_过滤器 str no - Time 过滤器: week, month, semiyear, year safe_搜索 bool no false Enable strict content 过滤器ing 搜索过滤器 Param Type Description match.site 列出[str] Limit 搜索 to specific sites, e.g. ["bAIke.bAIdu.com"] range.pa获取ime obj Date range for page_time field (see below) Date 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 (启动) lte Less or equal (end) Examples # Basic 搜索 python3 技能s/bAIdu-搜索/scripts/搜索.py '{"查询":"人工智能"}'
# 过滤器 by time and site python3 技能s/bAIdu-搜索/scripts/搜索.py '{ "查询":"最新新闻", "搜索_recency_过滤器":"week", "搜索_过滤器":{"match":{"site":["news.bAIdu.com"]}} }'
# Resource type 过滤器 python3 技能s/bAIdu-搜索/scripts/搜索.py '{ "查询":"旅游景点", "resource_type_过滤器":[{"type":"网页","top_k":20},{"type":"video","top_k":5}] }'
Current 状态
Fully functional.