Skip to content
otinstaller
Install

OSINT tool

Install twscrape on Windows, macOS and Linux

Search and collect X (Twitter) posts, profiles and followers.

twittersocialpassive
ot install twscrape

twscrape collects data from X (Twitter): search results, a user's posts, followers and profile details. It works through accounts that you add to it and switches between them when one reaches its rate limit.

How to install twscrape

ot install twscrape

ot installs twscrape 0.21.1 with uv into a Python environment of its own under ~/.ot, so it cannot conflict with your system Python or with any other tool.

Before first use: Needs one or more X accounts of your own, added with "ot run twscrape add_accounts".

New to ot? It is one command to install, shown below.

How to use twscrape

Arguments after the tool's name go straight to twscrape, so its own documentation applies unchanged.

Add your accounts from a file with one account per line.

ot run twscrape add_accounts accounts.txt username:password:email:email_password

Log the accounts in.

ot run twscrape login_accounts

Search posts and print them as JSON.

ot run twscrape search "from:nasa" --limit 20

Show a profile.

ot run twscrape user_by_login nasa

ot run twscrape --help lists every option. The project's own documentation is at github.com/vladkens/twscrape.

An AI agent can run twscrape too: ot mcp serves it over the Model Context Protocol. See OSINT with AI agents.

twscrape licence, platforms and versions

Projecthttps://github.com/vladkens/twscrape
LicenceMIT
Runs onWindows, macOS and Linux
Takesusername, query
Sends traffic to the targetNo
Python packagetwscrape 0.21.1, in its own isolated environment

Questions about twscrape

How do I install twscrape on Windows?

Is twscrape free?

Do I need to set up Python to use twscrape?

How do I update or remove twscrape?

Install ot

curl -fsSL https://otinstaller.com/install.sh | sh

Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.

More: Social media OSINT tools