Local web search skill without API Key, supports multi-engine auto-switching and built-in cache.
Use this skill when the user requests:
bash
python3 scripts/search.py -q "keywords"
bash
python3 scripts/search.py -q "keywords" -e bing # Bing (default)
python3 scripts/search.py -q "keywords" -e auto # Auto failover
python3 scripts/search.py -q "keywords" -e webfetch # urllib fallback
bash
python3 scripts/search.py -q "keywords" -l 5 # Limit result count
python3 scripts/search.py -q "keywords" --fast # Fast mode, skip cookies
python3 scripts/search.py -q "keywords" --no-cache # Skip cache
python3 scripts/search.py -q "keywords" -f text # Text format output
python3 scripts/search.py -q "keywords" -o file.json # Output to file
python3 scripts/search.py -q "keywords" -v # Verbose logging
EngineDescriptionbingDefault primary, supports RSS and HTML dual modeautoAuto failover, Bing → Yandex → DDG → WebFetchwebfetchurllib standard library, no requests package needed
Default is bing, use auto on failure.
~/.cache/web-search-local/bash
python3 scripts/search.py --cache-stats # View cache statistics
python3 scripts/search.py --cache-clear # Clear cache
bash
python3 scripts/search.py -q "keywords" -f json
json
{
"query": "search keywords",
"engine": "bing",
"count": 3,
"results": [
{"title": "page title", "url": "https://...", "snippet": "summary description"}
],
"elapsed_seconds": 0.58
}
bash
python3 scripts/search.py -q "keywords" -f text
text
Search: python programming
Engine: bing
Results: 2
============================================================
1. Python.org - Official Site
https://python.org
The official home of Python
references/search-usage.mdreferences/search-auto-engine.md