Skip to content

Calculate RubinRatios with Node and the Twitter API

License

Notifications You must be signed in to change notification settings

deodad/rubinratio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RubinRatio

Calculates RubinRatios for Twitter users as originally proposed by Eric Weinstein in this tweet.

Getting Started

Installation

  1. Install node and yarn
  2. Clone this repo with git clone git://github.com/adaddeo/rubinratio.git
  3. Install dependencies with yarn install

Configuration

  1. Create a .env file in the project root with variables:
CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN_KEY=
ACCESS_TOKEN_SECRET=

These can be obtained by signing up for a developer account with Twitter.

You can optionally omit ACCESS_TOKEN_KEY and ACCESS_TOKEN_SECRET and supply a BEARER_TOKEN instead for increased api rate limits (see docs).

Usage

node rubinratio.js [options]
  -f      input file of handles
  -l      comma-separated list of handles
  -o=csv  output results in csv format
  -u      calculate RubinRatio for all followers of this screen name

EXAMPLES
  node rubinratio.js -l ericrweinstein,kanyewest
  node rubinratio.js -u rubinreport -o csv

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Calculate RubinRatios with Node and the Twitter API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published