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
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
querit_cli-0.1.1.tar.gz
(7.6 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.1.tar.gz.
File metadata
- Download URL: querit_cli-0.1.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b5962a5d9e8e15fa5bdbe62cc5744bcb61c1e3567f87d8c8bb09e6b19133850
|
|
| MD5 |
d39a3b70be3533cd05d7b06fa5e98bae
|
|
| BLAKE2b-256 |
f16d889d16ac9f03d5b1c7ef1af33893bbf477fbac876331dc547b6085635676
|
File details
Details for the file querit_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: querit_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.9 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 |
0f11a528a2e308566211a5e110bd6fce3df7e0742447d364bbb08e5c708040a9
|
|
| MD5 |
519965a450b3259b593b9c40be6c57d4
|
|
| BLAKE2b-256 |
6d06293d939f42d189e1d2f4ff2a731c67262beed1cdf8ed341af5a94b070112
|