Python client for Metasearch - search 200+ engines with AI answers
Project description
metasearch-client
Python client for Metasearch - search 200+ engines with AI answers.
Installation
pip install metasearch-client
Quick Start
from metasearch_client import Metasearch
# Connect to local instance
ms = Metasearch("http://localhost:8889")
# Search
results = ms.search("Rust async programming")
for r in results[:5]:
print(f"{r.title} - {r.url}")
# AI Answer with citations
answer = ms.answer("What is the difference between Rust and Go?")
print(answer.text)
for cite in answer.citations:
print(f" [{cite['index']}] {cite['title']}")
# News feed
news = ms.discover(lang="ko", category="tech")
for article in news[:5]:
print(f"{article['title']} - {article['source']}")
# Trending topics
trends = ms.trending(geo="KR")
for t in trends[:10]:
print(t["title"])
API Reference
Metasearch(base_url, timeout=30)
Create a client instance.
Methods
| Method | Description |
|---|---|
search(query, categories, lang, page) |
Search across engines |
answer(query, focus, model, stream) |
Get AI-grounded answer |
research(query, focus, deep) |
Deep research with subqueries |
discover(lang, category, limit) |
Curated news feed |
trending(geo) |
Trending topics |
images(query, lang) |
Image search |
news_digest(query, lang) |
AI news summary |
health() |
Server health check |
Focus modes for answer()
general- Balanced answeracademic- Scholarly sourcescode- Programming focusnews- Recent events
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metasearch_client-0.1.0.tar.gz.
File metadata
- Download URL: metasearch_client-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3392ac384cbfe84566476da22aa1d21ecb2c7276c0b6d8f3629041023ea06f91
|
|
| MD5 |
4ace85407294e3ebaaf566cdee175d79
|
|
| BLAKE2b-256 |
3e394a742cdb17dd3db4a7f1a1c923f7b9f9fee6b31f7061a988acf1fdc63964
|
File details
Details for the file metasearch_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metasearch_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b855501857107c593e9b4a5eb2108ade9df4519d23d448dfe5da2289f1ae21db
|
|
| MD5 |
656554bd5d3360d1352c70c7ab54ec84
|
|
| BLAKE2b-256 |
ff5c1e50050e27b11ebaa7ac825cfbdb12416c9f9aad358dbef022047ce0089b
|