360 Secure SkillHub
360 安全技能中心

Baidu Search (Free)

该 Skill 通过 Python 脚本抓取百度搜索结果,无需 API Key。输入 JSON 形式的查询参数(query、count、freshness),支持按天/周/月/年或自定义日期范围过滤,最多返回 50 条结果,输出标题、摘要、真实链接和发布时间。文档提示云端 IP 可能触发反爬验证。

guoxh
guoxh
热度 58.48
最近更新 2026-05-11 17:43:33
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add baidu-search-free
Metadata
name
baidu-search-free
description
Free Baidu web search, no API key required, supports time range filtering
author
OpenClaw Community
version
1.0.1
license
MIT
tags
["search","baidu","free","web-search","chinese"]
metadata
{"openclaw":{"emoji":"🔍","requires":{"bins":["python3"]}}}

Baidu Search (Free)

Free Baidu web search tool, no API key or authentication required, ready to use out of box.

Features

✅ No API key required, completely free ✅ Supports Chinese/English search queries ✅ Time range filtering: 1 day/1 week/1 month/1 year/custom date range ✅ Customizable result count (up to 50 results) ✅ Automatic anti-scraping handling with retry mechanism ✅ Returns title, snippet, real URL, and publish time

Usage

python scripts/search.py '{"query": "your search keywords", "count": 10, "freshness": "pd/pw/pm/py/YYYY-MM-DDtoYYYY-MM-DD"}'

⚠️ Note: If you encounter anti-scraping verification errors, this is likely due to Baidu blocking your server's IP. This is a known limitation when scraping Baidu from cloud servers. Consider using a proxy or VPN if needed.

Parameters

Parameter Type Required Default Description
query string yes - Search keywords
count int no 10 Number of results to return, max 50
freshness string no null Time range filter: pd(past 24h), pw(past week), pm(past month), py(past year), or custom date range in format YYYY-MM-DDtoYYYY-MM-DD

Example

python scripts/search.py '{"query": "Linzhi Tibet travel guide", "count": 3, "freshness": "pm"}'