CLI tool for the Querit API — search from the command line.
Project description
querit-cli
Command-line interface for the Querit Content Retrieval Platform — search the web directly from your terminal or scripts.
Installation
pip install querit-cli
Quick Start
# Authenticate
querit login --api-key YOUR_API_KEY
# Basic search
querit search "climate change"
# Limit result count
querit search "python tutorial" --count 5
# Filter by time range (past 7 days)
querit search "latest AI news" --time-range d7
# Filter by site
querit search "technology" --sites-include bbc.com --sites-exclude reddit.com
# Filter by country and language
querit search "local news" --countries france --countries germany --languages en
# Save results to file
querit search "machine learning" --output results.json
# JSON output (for scripts and agents)
querit search "query" --json
# Interactive REPL mode
querit
Authentication
Set your API key using one of:
# Save to config file (~/.querit/config.json)
querit login --api-key YOUR_API_KEY
# Or use environment variable
export QUERIT_API_KEY=YOUR_API_KEY
Get your API key at querit.ai.
Search Options
| Option | Description |
|---|---|
--count N |
Maximum number of results |
--sites-include SITE |
Only include results from this site (repeatable) |
--sites-exclude SITE |
Exclude results from this site (repeatable) |
--time-range RANGE |
Time filter: d7, w2, m3, y1, or 2024-01-01to2024-06-30 |
--countries CC |
Limit to countries, e.g. france, germany (repeatable) |
--languages LANG |
Limit to languages, e.g. en, zh (repeatable) |
--output FILE |
Save full JSON response to file |
--json |
Output as JSON for scripts and agents |
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
querit_cli-0.1.3.tar.gz
(7.7 kB
view details)
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 querit_cli-0.1.3.tar.gz.
File metadata
- Download URL: querit_cli-0.1.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43fccc7ec923283f0a3eab87bb9224adff0070e0ee7c2907833e8fff28e18ef
|
|
| MD5 |
282c71b72063f3ce20f91f91ce929b54
|
|
| BLAKE2b-256 |
7b210a8f39812002d698b7973ded66b441b4965d91a65a9d9e61aebbf18834a9
|
File details
Details for the file querit_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: querit_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00254cd285a7176cbef5c41670268d35f4f080cd6249f8d029784e0b40532e87
|
|
| MD5 |
cc99c4a2b5bb6079c32c16d2c1d68e93
|
|
| BLAKE2b-256 |
3c6ce6c102ff3c640f44460c66e3fd5f673f1dbb52036639be622d02787bfe92
|