Google Search Unlimited V2
by @gloriaolk
Google Search with intelligent caching, rate limiting, and cost optimization. Uses OpenClaw tools + free APIs. 10x faster, 99% cheaper than v1.
clawhub install google-search-unlimited-v2π About This Skill
name: google-search-unlimited-v2 description: Google Search with intelligent caching, rate limiting, and cost optimization. Uses OpenClaw tools + free APIs. 10x faster, 99% cheaper than v1. author: Oleko gloria version: 2.0.0 license: MIT keywords: [search, google, caching, optimization, free-tier, cost-saving, performance]
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)
ποΈ 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
# Install skill
clawhub install google-search-unlimited-v2Install dependencies
pip install requests beautifulsoup4 lxmlBasic 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-inTier 2: Google Custom Search API (100 free/day)
Tier 3: Alternative Free APIs
Tier 4: Lightweight Scraping
βοΈ Setup
# Minimal dependencies
pip install requests beautifulsoup4Optional: For better parsing
pip install lxml
π― Usage
# 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:
# Google API (optional)
GOOGLE_API_KEY=your_key
GOOGLE_CSE_ID=your_cxCache settings
CACHE_TTL_HOURS=24
MAX_CACHE_SIZE_MB=100Rate limiting
MAX_REQUESTS_PER_MINUTE=10
π Performance Features
π° Cost Optimization
Free Methods First
1. OpenClaw tools (no cost) 2. Free APIs (DuckDuckGo, Brave) 3. Google API (100 free/day)Cache Strategy
Bandwidth Saving
π‘οΈ Reliability
π Monitoring
Built-in metrics:
Example Output
{
"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