otinstaller · Social media
Install twscrape on Windows, macOS, or Linux in one command
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.
twscrape in three lines
curl -fsSL https://otinstaller.com/install.sh | sh
ot install twscrape
ot run twscrape add_accounts accounts.txt username:password:email:email_passwordOn Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.
Runs vladkens/twscrape (MIT, ★ 3k, otinstaller 0.3.0). otinstaller installs it as a Python package, pinned to version 0.21.1; it does not change or audit the tool itself.
What twscrape is for
- Collecting the posts that match a search on X.
- Reading a user's profile details, followers, and timeline.
- Longer collections spread over several accounts.
Run twscrape with ot
ot run twscrape passes everything after the tool's name to twscrape unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.
- 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
Where the results go
ot run saves nothing itself: twscrape's output goes to your terminal, a pipe, or wherever its own output option writes it. Results can hold personal data, so store and share them accordingly.
Before you run it
- Needs one or more X accounts of your own, added with ot run twscrape add_accounts. Use dedicated accounts; they can be limited or suspended.
- X changes its interfaces often. If a command stops working, check for a newer version with ot update twscrape --check.
Update, remove, inspect
ot info twscrape # details, and how it installs on this system
ot update twscrape # move to the version the registry pins
ot update twscrape --latest # take the newest upstream release instead
ot remove twscrape # remove itFull reference: the otinstaller docs, twscrape on otinstaller.com, and the tool's own project page.
Pairs with
FAQ
twscrape with otinstaller, answered
How do I install twscrape on Windows, macOS, or Linux?
Install ot once with the one-line script on the otinstaller page, then run ot install twscrape. Ot puts it in a Python environment of its own under ~/.ot/uv, apart from your system Python, at version 0.21.1. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.
How do I run twscrape through ot?
With ot run twscrape followed by twscrape's own arguments, for example: ot run twscrape add_accounts accounts.txt username:password:email:email_password. ot passes everything after the tool's name straight through and exits with the tool's exit code, so the project's own documentation applies unchanged. Add ~/.ot/bin to your PATH to call the tool by its own name.
Is twscrape part of ot scan?
No. ot scan takes a username, an email address, a domain, or a phone number and runs the tools the registry assigns to that kind of target. Run twscrape on its own with ot run twscrape.
Does twscrape need an API key or a login?
Yes. Needs one or more X accounts of your own, added with ot run twscrape add_accounts. Use dedicated accounts; they can be limited or suspended.
Does twscrape send traffic to the target?
The registry lists twscrape as passive: it does not probe the target's own systems. Options that do contact the target, where the tool has them, are named under "Before you run it".