A port of n0madic/twitter-scraper to Node.js.
Twitter's API is annoying to work with, and has lots of limitations — luckily their frontend (JavaScript) has it's own API, which I reverse-engineered. No API rate limits. No tokens needed. No restrictions. Extremely fast.
You can use this library to get the text of any user's Tweets trivially.
Known limitations:
- Search operations require logging in with a real user account via
scraper.login()
. - Twitter's frontend API does in fact have rate limits (#11)
This package requires Node.js v16.0.0 or greater.
NPM:
npm install @the-convocation/twitter-scraper
Yarn:
yarn add @the-convocation/twitter-scraper
TypeScript types have been bundled with the distribution.
We use Conventional Commits, and enforce this with precommit checks.