Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

google-search-2Google 搜索 2

Agent Skill

google-search-2 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,738

周安装

310

GitHub Stars

公开资料未说明

下载量

2,505
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:google-search-2(Google 搜索 2)
来源仓库:https://github.com/leohuang8688/google-search-2
安装命令:
openclaw skills install google-search-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install google-search-2

简介

使用 Google 自定义搜索 API 执行全球网络搜索,并提供可自定义的结果计数和高质量结果。

SKILL.md

🔍 Google Web Search Skill

Google 网页搜索技能 - 使用 Google Custom Search API 进行全球网络搜索


📋 Overview

PropertyValue
Namegoogle-web-search
Version1.0.0
AuthorPocketAI for Leo
LicenseMIT
CategorySearch
Required Env VarsGOOGLE_API_KEY, GOOGLE_CX

🔐 Required Environment Variables

This skill requires the following environment variables:

VariableDescriptionRequiredHow to Get
GOOGLE_API_KEYGoogle Custom Search API key✅ Yeshttps://console.cloud.google.com/
GOOGLE_CXCustom Search Engine ID✅ Yeshttps://programmablesearchengine.google.com/

Configuration:

export GOOGLE_API_KEY="your_google_api_key"
export GOOGLE_CX="your_search_engine_id"

✨ Features


✨ Features

  • 🔍 Google Web Search - 使用 Google Custom Search API
  • 🌍 Global Coverage - 全球搜索覆盖
  • 📊 Customizable Results - 可定制返回结果数量
  • 🚀 Easy Integration - 易于集成到 OpenClaw
  • 🎯 High Quality - 高质量搜索结果

🚀 Quick Start

Installation

cd ~/.openclaw/workspace/skills
# Already installed at: google-web-search/

Configuration

Option 1: Using .env file (Recommended)

# Copy the example .env file
cp .env.example .env

# Edit .env and add your API keys
nano .env  # or use your favorite editor

Option 2: Using environment variables

export GOOGLE_API_KEY="your_google_api_key"
export GOOGLE_CX="your_search_engine_id"

Basic Usage

from src.google_search import google_search

# Search with default 10 results
result = google_search("AI trends 2026")
print(result)

# Search with custom result count
result = google_search("electric vehicles", count=5)
print(result)

CLI Usage

# Search with default 10 results
python3 src/google_search.py "AI trends 2026"

# Search with custom result count
python3 src/google_search.py "electric vehicles" 5

📖 API Usage

Python API

from src.google_search import GoogleSearch, google_search

# Method 1: Simple search
result = google_search("OpenClaw AI", count=10)
print(result)

# Method 2: Using client
searcher = GoogleSearch(
    api_key="your_api_key",
    cx="your_cx_id"
)
results = searcher.search("OpenClaw", count=10)

for result in results:
    print(f"Title: {result['title']}")
    print(f"URL: {result['url']}")
    print(f"Snippet: {result['snippet']}")
    print(f"Source: {result['display_link']}\
")

⚙️ Configuration

Environment Variables

VariableDescriptionRequired
GOOGLE_API_KEYGoogle Custom Search API key✅ Yes
GOOGLE_CXCustom Search Engine ID✅ Yes

Getting Google API Key

  1. Visit Google Cloud Console
  2. Create a new project or select existing
  3. Enable "Custom Search API"
  4. Go to APIs & Services → Credentials
  5. Create API Key

Creating Search Engine

  1. Visit Programmable Search Engine
  2. Click "Add" to create a new search engine
  3. Configure search scope (entire web or specific sites)
  4. Get the Search Engine ID (CX)

📁 Project Structure

google-web-search/
├── src/
│   └── google_search.py    # Main search client
├── SKILL.md                 # This file
└── README.md                # Documentation

🎯 Use Cases

1. News Search

result = google_search("latest tech news 2026")

2. Research

result = google_search("AI healthcare applications research")

3. Product Search

result = google_search("smartphone reviews 2026")

4. Academic Search

result = google_search("machine learning papers site:arxiv.org")

📝 Response Format

Search Result Structure

{
  "title": "Page Title",
  "url": "https://example.com/page",
  "snippet": "Page description snippet",
  "display_link": "example.com"
}

Example Output

🔍 Google Search Results for: AI trends 2026

Found 10 results:

1. **Top AI Trends to Watch in 2026**
   Source: forbes.com
   URL: https://forbes.com/ai-trends-2026
   Artificial intelligence continues to evolve rapidly...

2. **The Future of AI in 2026**
   Source: mit.edu
   URL: https://mit.edu/ai-future-2026
   MIT researchers predict major breakthroughs...

⚠️ Limitations

  • API Quotas: Free tier: 100 queries/day
  • API Key Required: Must have valid Google API key
  • Search Engine Required: Must create Custom Search Engine
  • Results Limit: Maximum 10 results per query

💰 Pricing

Free Tier

  • 100 queries per day
  • Suitable for development and testing

Paid Tier

  • $5 per 1000 queries
  • Suitable for production use

📞 Support

  • Google Cloud Docs: https://cloud.google.com/custom-search/docs
  • API Reference: https://developers.google.com/custom-search/v1/overview

📄 License

MIT License - See LICENSE file for details.


Happy Searching! 🔍


*Last Updated: 2026-03-17* *Version: 1.0.0* *Author: PocketAI for Leo*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.17%
按下载量换算1,783

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills