$npx -y skills add szsip239/teamclaw --skill baidu-searchSearch the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
| 1 | # Baidu Search |
| 2 | |
| 3 | Search the web via Baidu AI Search API. |
| 4 | |
| 5 | ## Usage |
| 6 | |
| 7 | ```bash |
| 8 | python3 skills/baidu-search/scripts/search.py '<JSON>' |
| 9 | ``` |
| 10 | |
| 11 | ## Request Parameters |
| 12 | |
| 13 | | Param | Type | Required | Default | Description | |
| 14 | |-------|------|----------|---------|-------------| |
| 15 | | query | str | yes | - | Search query | |
| 16 | | count | int | no | 10 | Number of results to return, range 1-50 | |
| 17 | | freshness | str | no | Null | Time range, two formats: format one is ”YYYY-MM-DDtoYYYY-MM-DD“, and format two includes pd, pw, pm, and py, representing the past 24 hours, past 7 days, past 31 days, and past 365 days respectively | |
| 18 | |
| 19 | ## Examples |
| 20 | |
| 21 | ```bash |
| 22 | # Basic search |
| 23 | python3 scripts/search.py '{"query":"人工智能"}' |
| 24 | |
| 25 | # Freshness first format "YYYY-MM-DDtoYYYY-MM-DD" example |
| 26 | python3 scripts/search.py '{ |
| 27 | "query":"最新新闻", |
| 28 | "freshness":"2025-09-01to2025-09-08" |
| 29 | }' |
| 30 | |
| 31 | # Freshness second format pd、pw、pm、py example |
| 32 | python3 scripts/search.py '{ |
| 33 | "query":"最新新闻", |
| 34 | "freshness":"pd" |
| 35 | }' |
| 36 | |
| 37 | # set count, the number of results to return |
| 38 | python3 scripts/search.py '{ |
| 39 | "query":"旅游景点", |
| 40 | "count": 20, |
| 41 | }' |
| 42 | ``` |
| 43 | |
| 44 | ## Current Status |
| 45 | |
| 46 | Fully functional. |