Skip to content

xdevplatform/real-time-tweet-streamer

Repository files navigation

Real-Time Tweet Streamer

Version Documentation Twitter: tonyv00

An example app to stream Tweets in real-time using the filtered stream endpoints and Tweet annotations to listen for Tweets based on your own topics of interest. See the tutorial for some real life examples of how this can be used and a step by step on how to build this app on your own.

Prerequisites

  • Twitter Developer account: if you don’t have one already, you can apply for one.
  • A Twitter developer app, which can be created in your Twitter developer account.
  • A bearer token from your app in the Twitter developer portal
  • Set up a project to obtain access to v2 endpoints in the Twitter developer portall
  • Access to the filtered stream endpoint. You will also need to activate it in the Twitter developer portal dashboard within your Twitter Developer account.
  • Node.js
  • Npm (This is automatically installed with Node. Make sure you have npm 5.2 or higher.)
  • Npx (Included with npm 5.2 or higher)

Install

npm install

Environment setup

export TWITTER_BEARER_TOKEN=<REPLACE WITH YOUR BEARER TOKEN INCLUDING ANGLE BRACKETS>

Usage

npm start

Author

👤 Tony Vu

How to Contribute

We'd love to get patches from you!

📝 License

By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/repo-scaffolding/blob/master/LICENSE

Code of Conduct

Read our Code of Conduct for the project.