Install
openclaw skills install web-anti-crawl-search使用无头浏览器通过多个搜索引擎搜索内容。用于当用户需要搜索最新新闻、时事、股票信息或其他需要实时网络数据的内容时。支持百度、Bing、360、Sogou、微信、今日头条、谷歌等国内外搜索引擎。
openclaw skills install web-anti-crawl-search使用无头浏览器(Playwright/Puppeteer)通过多个搜索引擎搜索内容。
https://www.baidu.com/s?wd={keyword}https://cn.bing.com/search?q={keyword}&ensearch=0https://www.so.com/s?q={keyword}https://sogou.com/web?query={keyword}https://wx.sogou.com/weixin?type=2&query={keyword}https://so.toutiao.com/search?keyword={keyword}https://www.jisilu.cn/explore/?keyword={keyword} (基金/理财)https://www.google.com/search?q={keyword}https://www.google.com.hk/search?q={keyword}https://duckduckgo.com/html/?q={keyword}https://search.yahoo.com/search?p={keyword}https://www.startpage.com/sp/search?query={keyword}https://search.brave.com/search?q={keyword}https://www.ecosia.org/search?q={keyword}https://www.qwant.com/?q={keyword}https://www.wolframalpha.com/input?i={keyword}运行搜索脚本:
cd /Users/wuwei/.openclaw/workspace/skills/web-search/scripts
node search.js <engine> <keyword>
engine: 搜索引擎名称(baidu, bing-cn, bing-int, 360, sogou, weixin, toutiao, jisilu, google, google-hk, duckduckgo, yahoo, startpage, brave, ecosia, qwant, wolframalpha)keyword: 搜索关键词(URL编码)# 搜索百度
node search.js baidu "A股今日走势"
# 搜索DuckDuckGo
node search.js duckduckgo "stock market news"
脚本会打开无头浏览器,访问搜索页面,提取搜索结果标题和链接,并输出为markdown格式。
需要安装 Playwright:
npm install playwright
npx playwright install chromium
使用 multi-search.js 脚本可以同时搜索 Google 和 Bing,进行对照验证:
cd /Users/wuwei/.openclaw/workspace/skills/web-search/scripts
node multi-search.js <keyword> [options]
| 参数 | 说明 |
|---|---|
keyword | 搜索关键词(必填) |
--google-only | 仅使用 Google 搜索 |
--bing-only | 仅使用 Bing 搜索 |
--quark-only | 仅使用夸克AI搜索 |
--max-results=N | 最多返回 N 条结果(默认 20) |
--format=md|json | 输出格式(默认 md) |
# 基本用法 - 同时搜索 Google + Bing
node multi-search.js "A股今日热点"
# 输出为 JSON 格式
node multi-search.js "人工智能新闻" --format=json
# 获取更多结果
node multi-search.js "新能源汽车政策" --max-results=30
# 仅使用 Bing
node multi-search.js "美股行情" --bing-only
# 仅使用夸克AI(适合国内搜索)
node multi-search.js "国内财经新闻" --quark-only
============================================================
🔍 "A股今日热点" 搜索结果(共 15 条)
============================================================
1. A股三大指数集体上涨,科技股领涨
🔗 https://finance.sina.com.cn/...
📌 来源: Google + Bing
2. 新能源汽车板块异动,多只个股涨停
🔗 https://stock.eastmoney.com/...
📌 来源: Bing
3. 北向资金净流入超50亿元
🔗 https://finance.qq.com/...
📌 来源: Google
...
| 特性 | Bing | 夸克AI | |
|---|---|---|---|
| 国内访问 | ⚠️ 不稳定 | ✅ 稳定 | ✅ 稳定 |
| 中文搜索 | ✅ 好 | ✅ 好 | ✅ 优秀 |
| 实时新闻 | ✅ 快 | ✅ 快 | ✅ 快 |
| 英文搜索 | ✅ 优秀 | ✅ 好 | ⚠️ 一般 |