baidu-search-CLI

# Baidu Search 通过百度AI搜索API搜索网络,但不需要安装python,直接改用CLI ## Usage 1.curl命令,发送的post json请参考当前目录下的search_request.json文件 2.用户的系统如果是windows请用cmd执行curl命令,不要用PowerShell 3.如果环境变量BAIDU_API_KEY不存在,返回信息:没有获取到环境变量BAIDU_API_KEY,请搜索如何获取BAIDU_API_KEY 4.如果环境变量BAIDU_API_KEY存在但curl返回身份验证错误,返回信息:APIKEY验证失败,请检查你的环境APIKEY是否设置正确 ```bash

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "baidu-search-CLI" with this command: npx skills add zfeng1982/baidu-search-cli

Baidu Search

通过百度AI搜索API搜索网络,但不需要安装python,直接改用CLI

Usage

1.curl命令,发送的post json请参考当前目录下的search_request.json文件
2.用户的系统如果是windows请用cmd执行curl命令,不要用PowerShell
3.如果环境变量BAIDU_API_KEY不存在,返回信息:没有获取到环境变量BAIDU_API_KEY,请搜索如何获取BAIDU_API_KEY
4.如果环境变量BAIDU_API_KEY存在但curl返回身份验证错误,返回信息:APIKEY验证失败,请检查你的环境APIKEY是否设置正确


curl -X POST -H "Authorization: Bearer apikey" -H "X-Appbuilder-From: openclaw" -H "Content-Type: application/json" -d "@search_request.json" "https://qianfan.baidubce.com/v2/ai_search/web_search"

Request Param

apikey desc:从环境变量BAIDU_API_KEY中获取apikey
下面几个参数是search_request.json的字段说明
content:string desc:Search query
top_k:int desc:返回的数据条数,默认为10条,最多50条
gte:string desc:消息的开始时间,格式为"YYYY-MM-DD"
lt:string desc:消息的结束时间,格式为"YYYY-MM-DD"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Spicy Ai Video

Turn a 60-second talking head clip into 1080p high-energy edited videos just by typing what you need. Whether it's turning bland footage into visually intens...

Registry SourceRecently Updated
Coding

Video Maker Fast

Get polished MP4 videos ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim...

Registry SourceRecently Updated
Coding

Generation Generator

generate text prompts or clips into AI generated videos with this skill. Works with MP4, MOV, PNG, JPG files up to 500MB. marketers, content creators, social...

Registry SourceRecently Updated
Coding

Editor On Android

Get edited MP4 clips ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim th...

Registry SourceRecently Updated