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"}'
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"}'