Cost-optimized, intelligent search with maximum free tier usage
Featurev1 (Original)v2 (Improved)BenefitCaching❌ None✅ SQLite + TTL90%+ cost reductionRate Limiting❌ Basic✅ IntelligentAvoids bansDependenciesPlaywright + heavyRequests + lightweight10x faster setupCost Optimization❌ Sequential✅ Free-first hierarchyMaximizes free tierOpenClaw Integration❌ Manual✅ Direct tool usageBuilt-in capabilitiesMonitoring❌ None✅ Built-in metricsTrack usage
text
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
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"
oxylabs_web_search - Fast, reliable, built-inbash
# Minimal dependencies
pip install requests beautifulsoup4
# Optional: For better parsing
pip install lxml
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"
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
Built-in metrics:
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
}
]
}