xsearch-cli

gullalder

A zero-dependency Python CLI for searching recent public X (Twitter) posts with cursor pagination via TwitterAPI.io.

PythonCreated

What is gullalder/xsearch-cli?

xsearch-cli is a lightweight, zero-dependency Python command-line utility for searching recent public X (formerly Twitter) posts.

Built on TwitterAPI.io's Advanced Search endpoint using its Latest mode, the script supports automatic cursor pagination to collect multi-page search results cleanly.

Developers, researchers, and OSINT analysts who need quick terminal access to X search results via TwitterAPI.io can run xsearch-cli.

Before you startThe README says

Runs on
Python 3.10 or newer; PowerShell commands included for Windows
Needs
Python 3.10 or newer; a TwitterAPI.io API key for live searches only
Accounts or paid services
A TwitterAPI.io API key, read from TWITTERAPI_IO_API_KEY; the offline tests need no key
How you get it
Create a venv in a local checkout, then run python -m pip install -e .
Not yet
Not tested against the live service; tests use mocked HTTP responses; queries are capped at 512 characters

Facts from GitHub (updated Dec 1, 2026) and the project's README. License summaries are simplified: check the license file. RepoRanking reviews listings for relevance and spam, and doesn't test or vouch for code.