by deedy5
A metasearch library that aggregates results from diverse web search services
# Add to your Claude Code skills
git clone https://github.com/deedy5/ddgsA metasearch library that aggregates results from diverse web search services.
git clone https://github.com/deedy5/ddgs && cd ddgs
docker-compose up --build
git clone https://github.com/deedy5/ddgs && cd ddgs
chmod +x start_api.sh
./start_api.sh
http://localhost:8000/mcp - HTTP transporthttp://localhost:8000/sse - SSE transportNo comments yet. Be the first to share your thoughts!
http://localhost:8000/docshttp://localhost:8000/healthsearch_text - Web text searchessearch_images - Image searchessearch_news - News searchessearch_videos - Video searchessearch_books - Book searches{
"mcpServers": {
"ddgs-search": {
"url": "http://localhost:8000/sse",
"disabled": false,
"alwaysAllow": []
}
}
}
pip install -U ddgs
ddgs --help
| DDGS function | Available backends |
| --------------|:-------------------|
| text() | bing, brave, duckduckgo, google, grokipedia, mojeek, yandex, yahoo, wikipedia|
| images() | duckduckgo |
| videos() | duckduckgo |
| news() | bing, duckduckgo, yahoo |
| books() | annasarchive |
DDGS class is lazy-loaded.
class DDGS:
"""Dux Distributed Global Search. A metasearch library that aggregates results from diverse web search services.
Args:
proxy (str, optional): proxy for the HTTP client, supports http/https/socks5 protocols.
example: "http://user:pass@example.com:3128". Defaults to None.
timeout (int, optional): Timeout value for the HTTP client. Defaults to 5.
verify: (bool | str): True to verify, False to skip, or a str path to a PEM file. Defaults to True.
"""
Here is an example of initializing the DDGS class.
from ddgs import DDGS
results = DDGS().text("python programming", max_results=5)
print(results)
def text(
query: str,
region: str = "us-en",
safesearch: str = "moderate",
...