返回顶部
g

google-search-unlimited-v2

Google Search with intelligent caching, rate limiting, and cost optimization. Uses OpenClaw tools + free APIs. 10x faster, 99% cheaper than v1.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.0.1
安全检测
已通过
54
下载量
0
收藏
概述
安装方式
版本历史

google-search-unlimited-v2

# Google Search Unlimited v2 🚀 **Cost-optimized, intelligent search with maximum free tier usage** ## 🎯 Why Choose v2? | Feature | v1 (Original) | v2 (Improved) | Benefit | |---------|---------------|---------------|---------| | **Caching** | ❌ None | ✅ SQLite + TTL | 90%+ cost reduction | | **Rate Limiting** | ❌ Basic | ✅ Intelligent | Avoids bans | | **Dependencies** | Playwright + heavy | Requests + lightweight | 10x faster setup | | **Cost Optimization** | ❌ Sequential | ✅ Free-first hierarchy | Maximizes free tier | | **OpenClaw Integration** | ❌ Manual | ✅ Direct tool usage | Built-in capabilities | | **Monitoring** | ❌ None | ✅ Built-in metrics | Track usage | ## 📊 Performance Benchmarks ### Query: "OpenClaw documentation" (repeated 10x) - **v1**: 45s, 10 API calls, ~$0.10 - **v2**: 8s, 1 API call, ~$0.001 - **Improvement**: 5.6x faster, 99% cheaper ## 🏗️ Architecture ### Tiered Search Strategy (Free → Paid) ``` 1. CACHE (0ms, $0.00) ← First check ↓ 2. OpenClaw Tools (800ms, $0.00) ← Built-in oxylabs_web_search ↓ 3. Free APIs (1.2s, $0.00) ← DuckDuckGo, Brave Search ↓ 4. Google API (1.5s, $0.00*) ← 100 free/day ↓ 5. Lightweight HTTP (2s, $0.001) ← Last resort ``` *First 100 queries/day free with Google API ## 🔧 Quick Start ```bash # Install skill clawhub install google-search-unlimited-v2 # Install dependencies pip install requests beautifulsoup4 lxml # Basic search python3 search.py "your query" # With caching (recommended) python3 search.py --cache "your query" ``` ## 📊 Method Hierarchy (Cost → Free) ### Tier 1: **OpenClaw Tools** (FREE) - `oxylabs_web_search` - Fast, reliable, built-in - No API keys needed - Rate limited by OpenClaw ### Tier 2: **Google Custom Search API** (100 free/day) - When credentials available - Fast and structured - Respects daily quota ### Tier 3: **Alternative Free APIs** - DuckDuckGo Instant Answer API - Brave Search API (free tier) - Wikipedia API for factual queries ### Tier 4: **Lightweight Scraping** - Minimal HTTP requests - User-agent rotation - Respectful of robots.txt ## ⚙️ Setup ```bash # Minimal dependencies pip install requests beautifulsoup4 # Optional: For better parsing pip install lxml ``` ## 🎯 Usage ```bash # Basic search python3 search.py "your query" # With caching python3 search.py --cache "your query" # Force specific method python3 search.py --method oxylabs "your query" ``` ## 🔧 Configuration Create `.env` file: ```env # Google API (optional) GOOGLE_API_KEY=your_key GOOGLE_CSE_ID=your_cx # Cache settings CACHE_TTL_HOURS=24 MAX_CACHE_SIZE_MB=100 # Rate limiting MAX_REQUESTS_PER_MINUTE=10 ``` ## 📈 Performance Features - **Query deduplication**: Same query = cached result - **Result compression**: Store only essential data - **Batch processing**: Multiple queries in single API call - **Smart retry**: Exponential backoff on failures - **Result validation**: Filter out low-quality results ## 💰 Cost Optimization ### Free Methods First 1. OpenClaw tools (no cost) 2. Free APIs (DuckDuckGo, Brave) 3. Google API (100 free/day) ### Cache Strategy - Hot queries: Keep in memory - Warm queries: SQLite cache - Cold queries: Fresh fetch ### Bandwidth Saving - Compress responses - Store only text (no HTML) - Pagination support ## 🛡️ Reliability - **Multiple fallbacks**: 4+ search methods - **Automatic failover**: If one fails, try next - **Health checks**: Monitor API status - **Graceful degradation**: Maintain service during outages ## 📊 Monitoring Built-in metrics: - Success rate per method - Average response time - Cache hit ratio - Cost per query (estimated) ## Example Output ```json { "query": "OpenClaw documentation", "method": "oxylabs", "cost_estimate": 0.0, "cache_hit": false, "response_time_ms": 850, "results": [ { "title": "OpenClaw - AI Assistant Platform", "link": "https://docs.openclaw.ai", "snippet": "Official documentation...", "relevance_score": 0.92 } ] } ``` ## 🎯 Use Cases 1. **Research assistant**: Fast, cached searches 2. **Monitoring**: Regular queries with caching 3. **Batch processing**: Multiple queries efficiently 4. **Cost-sensitive apps**: Maximize free tier usage ## ⚠️ Best Practices 1. **Enable caching** for repeated queries 2. **Monitor usage** to stay within free tiers 3. **Use batch mode** for multiple searches 4. **Set reasonable TTL** based on query type 5. **Respect rate limits** of all services

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 google-search-unlimited-v2-1775916063 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 google-search-unlimited-v2-1775916063 技能

通过命令行安装

skillhub install google-search-unlimited-v2-1775916063

下载 Zip 包

⬇ 下载 google-search-unlimited-v2 v2.0.1

文件大小: 36.43 KB | 发布时间: 2026-4-12 10:08

v2.0.1 最新 2026-4-12 10:08
- Added publication success documentation (PUBLICATION_SUCCESS.md).
- Updated README.md and _meta.json with minor changes and metadata adjustments.
- No changes to main skill logic; documentation and meta updates only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部