使用无头浏览器通过多个搜索引擎搜索内容。用于当用户需要搜索最新新闻、时事、股票信息或其他需要实时网络数据的内容时。支持百度、Bing、360、Sogou、微信、今日头条、谷歌等国内外搜索引擎。
Scanned 9/10/2026
Install to Claude Code
npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill web-anti-crawl-search --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Web Anti Crawl Search?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/luokai0-web-anti-crawl-search)More formats (shields.io, HTML) on the badges page.
---
name: web-search
description: 使用无头浏览器通过多个搜索引擎搜索内容。用于当用户需要搜索最新新闻、时事、股票信息或其他需要实时网络数据的内容时。支持百度、Bing、360、Sogou、微信、今日头条、谷歌等国内外搜索引擎。
---
# Web Search Skill
使用无头浏览器(Playwright/Puppeteer)通过多个搜索引擎搜索内容。
## 搜索引擎列表
### 国内搜索引擎
- **Baidu**: `https://www.baidu.com/s?wd={keyword}`
- **Bing CN**: `https://cn.bing.com/search?q={keyword}&ensearch=0`
- **360**: `https://www.so.com/s?q={keyword}`
- **Sogou**: `https://sogou.com/web?query={keyword}`
- **WeChat**: `https://wx.sogou.com/weixin?type=2&query={keyword}`
- **Toutiao**: `https://so.toutiao.com/search?keyword={keyword}`
- **Jisilu**: `https://www.jisilu.cn/explore/?keyword={keyword}` (基金/理财)
### 国际搜索引擎
- **Google**: `https://www.google.com/search?q={keyword}`
- **Google HK**: `https://www.google.com.hk/search?q={keyword}`
- **DuckDuckGo**: `https://duckduckgo.com/html/?q={keyword}`
- **Yahoo**: `https://search.yahoo.com/search?p={keyword}`
- **Startpage**: `https://www.startpage.com/sp/search?query={keyword}`
- **Brave**: `https://search.brave.com/search?q={keyword}`
- **Ecosia**: `https://www.ecosia.org/search?q={keyword}`
- **Qwant**: `https://www.qwant.com/?q={keyword}`
- **WolframAlpha**: `https://www.wolframalpha.com/input?i={keyword}`
## 使用方法
运行搜索脚本:
```bash
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编码)
### 示例
```bash
# 搜索百度
node search.js baidu "A股今日走势"
# 搜索DuckDuckGo
node search.js duckduckgo "stock market news"
```
## 输出
脚本会打开无头浏览器,访问搜索页面,提取搜索结果标题和链接,并输出为markdown格式。
## 依赖
需要安装 Playwright:
```bash
npm install playwright
npx playwright install chromium
```
---
## 🆕 多搜索引擎对照搜索 (Multi-Search)
使用 `multi-search.js` 脚本可以同时搜索 **Google** 和 **Bing**,进行对照验证:
- ✅ 同时获取 Google 和 Bing 的搜索结果
- ✅ 智能去重合并,标记数据来源
- ✅ **如果 Google 访问失败,自动使用夸克AI搜索替代**
- ✅ 支持 JSON 和 Markdown 两种输出格式
### 使用方法
```bash
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) |
### 示例
```bash
# 基本用法 - 同时搜索 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
```
### 输出示例(Markdown 格式)
```
============================================================
🔍 "A股今日热点" 搜索结果(共 15 条)
============================================================
1. A股三大指数集体上涨,科技股领涨
🔗 https://finance.sina.com.cn/...
📌 来源: Google + Bing
2. 新能源汽车板块异动,多只个股涨停
🔗 https://stock.eastmoney.com/...
📌 来源: Bing
3. 北向资金净流入超50亿元
🔗 https://finance.qq.com/...
📌 来源: Google
...
```
### 错误处理机制
1. **Google 访问失败**:自动切换到夸克AI搜索
2. **所有引擎失败**:返回空结果并输出错误信息
3. **部分引擎失败**:返回成功引擎的结果,并标记失败的引擎
### 特性对比
| 特性 | Google | Bing | 夸克AI |
|------|--------|------|--------|
| 国内访问 | ⚠️ 不稳定 | ✅ 稳定 | ✅ 稳定 |
| 中文搜索 | ✅ 好 | ✅ 好 | ✅ 优秀 |
| 实时新闻 | ✅ 快 | ✅ 快 | ✅ 快 |
| 英文搜索 | ✅ 优秀 | ✅ 好 | ⚠️ 一般 |
### 推荐使用场景
- **默认模式**(Google + Bing):获取最全面的结果
- **仅 Bing**:国内访问稳定,中文搜索优秀
- **仅 夸克AI**:国内搜索首选,中文理解好Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!