Skip to main content

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.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

querit_cli-0.1.2-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file querit_cli-0.1.2.tar.gz.

File metadata

  • Download URL: querit_cli-0.1.2.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

Hashes for querit_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 de73cdb84e005d735e1007cc3a5429e84d535d9f74fa524c1ccf6f4b89390e04
MD5 b7ee52b2a086ac9930acfa6b7d895f02
BLAKE2b-256 579b501d39939dd594e059e6e52dff8bd8cf052dffa302a9d5b02a9bb24d76d9

See more details on using hashes here.

File details

Details for the file querit_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: querit_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for querit_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 90cdc86a4a0c790441f68e9bb5b8b5260ea18d8fa5f471fa8d0d40b2442cc239
MD5 1782a78da2d0864d2f6cbea919435b13
BLAKE2b-256 19c2789840bb5e7454d35cd8277b54d90abf6d96634f3fc13724b73fbbb94d85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page