Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.41 KB

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.