1.1.0 • Published 7 years ago

node-keyboard-twitter v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

node-keyboard-twitter

npm version

Twitter sentiment tracking plugin for node-keyboard.

npm.io

Installation

As Global

If you installed node-keyboard globally, then install this plugin via npm i -g node-keyboard-twitter

Then start node keyboard via node-keyboard, and import this plugin via const twitter = requireg('node-keyboard-twitter')

As Local

If instead you cloned node-keyboard, then install locally in that folder via npm i node-keyboard-twitter

Then start node keyboard via node keyboard and import this plugin via const twitter = require('node-keyboard-twitter')

Usage

  1. Ensure your environment variables for Twitter API usage are set. See https://github.com/justinjmoses/twitter-sentiment#installation

  2. Try out the twitter sentiment tracker by adding the track field (see Twitter API for input options) and the minFollowers that the account needs to have to be used.

twitter.search({ track: 'bieber', minFollowers: 100 }).do(twitter.log.sentiment).map(twitter.map.toMusic).subscribe(play)

For a longer recording, checkout https://vid.me/MYR5

Known issues

Status Code: 420 - means you've been rate limited by Twitter. Enhance your calm.

In action

I spoke on node-keyboard at EmpireNode in November 2016.

Here's the excerpt for node-keyboard-twitter: image