8000 GitHub - jimkang/twitterjerkdetector: Given an array of Twitter user ids, gives back an array of the subset of those user ids that aren't jerks.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Given an array of Twitter user ids, gives back an array of the subset of those user ids that aren't jerks.

Notifications You must be signed in to change notification settings

jimkang/twitterjerkdetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Given an array of Twitter user ids, gives back an array of the subset of those user ids that aren't jerks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0