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

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Tony Vu.
This project is Apache License, Version 2.0 licensed.