2.2.1 • Published 8 years ago

twitterjerkdetector v2.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

twitterjerkdetector

Given an array of Twitter user ids, gives back an array of the subset of those user ids that aren't jerks. (Figures that out by looking for keywords in their profiles.)

Installation

npm install twitterjerkdetector

Usage

var twitterjerkdetector = require('twitterjerkdetector');
var twit = require('twit');
var filter = twitterjerkdetector.createFilter({
  twit: twit,
  blacklist: [2255981, 14174091]
});
filter(
  [
    13145012,
    12602932,
    10369032,
    10451252,
    765140,
    2255981,
    1038301,
    14174091,
    14834227
  ],
  function done(error, results) {
    console.log(JSON.stringify(results, null, '  '));
  }
);

Output:

{
  coolguys: [
    12602932,
    10369032,
    765140,
    14174091
  ],
  jerks: [
    13145012,
    10451252,
    2255981,
    1038301,
    14834227
  ]
}

The blacklist opt is an array of ids that the filter will always consider bad.

Tests

Run tests with make test.

License

MIT.

2.2.1

8 years ago

2.2.0

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.3.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago