Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Process tweets with Twitter Streaming API and Node.js
JavaScript
Tag: v0.0.6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitattributes
.gitignore
.npmignore
LICENSE
README.md
index.js
package.json

README.md

Twitter-processing

Receive Tweets from the Twitter Streaming API and process them using custom processors.

Installation

npm install twitter-processing

Usage

var twitterProcessing = require('twitter-processing');

var processing = twitterProcessing({
    'debug' : true,
    'processor' : function(job,done) {
        job.data.addedKey = 'value';
        done();
    },
    'redis' : {
        'host' : 'localhost',
        'post' : 6379,
        'password' : ''
    },
    'twitter' : {
        'consumer_key' : '',
        'consumer_secret' : '',
        'access_token_key' : '',
        'access_token_secret' : ''
    },
    'filter' : {
        'track' : 'Twitter'
    }
});

processing.on('data',function(tweet) {
    console.log(tweet.addedKey); //value
});
Something went wrong with that request. Please try again.