Skip to content

Use the Twitter Streaming API to track a given keyword and generate various reports about the tweets

License

Notifications You must be signed in to change notification settings

prashant-pokhriyal/twitter-streaming-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Streaming API

Twitter Streaming API

Using the Twitter Streaming API to track a given keyword and generate various reports about the tweets.

Documentation

Yet to be drafted

Prerequisites

You need valid Twitter developer credentials in the form of a set of consumer and access tokens/keys. You can get these here.

consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''

You can store those credentials in file name cred.json or while executing program it will ask you for those credentials.

Installing

Open terminal, and run following command to clone repository.

git clone [email protected]:prashant-pokhriyal/twitter-streaming-api.git
cd twitter-streaming-api/

If you are running it in a dabian based system like ubuntu, then you can execute following command which will take care of installing latest version of nodejs and yarn package manager.

sudo ./install.sh

Otherwise you can download nodejs and yarn package manager in your system. And after installing run following command to install the dependencies required for running program.

yarn install

To execute the program, run following command.

node index.js

After running program it will ask your twitter developer credentials if you haven't stored it in cred.json.

After authenticating it will give you success message and then ask for the keyword that you want to search.

For every minute it will generate following three reports

  • Users Report
  • Links Report
  • Content Report

Built With

Author

  • Prashant Pokhriyal

About

Use the Twitter Streaming API to track a given keyword and generate various reports about the tweets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published