monitor-twitter
v1.0.0
Published
Monitor Twitter for tweets from a certain user that match a given pattern.
Downloads
2
Maintainers
Readme
monitor-twitter
A Node.js module to monitor Twitter for tweets from a user that match a pattern.
Install
npm install monitor-twitter
Example
var Monitor = require('monitor-twitter');
// Your Twitter credentials
var config = {
consumer_key: KEY,
consumer_secret: SECRET,
access_token: TOKEN,
access_token_secret: TOKEN_SECRET
};
var m = new Monitor(config);
// Watch the account '_matthewpalmer' for Tweets containing 'http' every 30 seconds.
m.start('_matthewpalmer', 'http', 30 * 1000);
m.on('_matthewpalmer', function(tweet) {
console.log('Received a tweet', tweet);
});