real-time-tweet-streamer
real-time-tweet-streamer copied to clipboard
Real-Time Tweet Streamer
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.
π Guided tutorial
β¨ Glitch Demo
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
- Your bearer token can be found from your app in the Twitter developer portal
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.