StanfordHCI/dump_bonusly

Name: dump_bonusly

Owner: Stanford HCI

Description: Dump bonus.ly info to JSON

Created: 2015-06-08 01:20:39.0

Updated: 2017-06-28 23:08:44.0

Pushed: 2015-09-12 08:54:45.0

Homepage: null

Size: 138

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

dump_bonusly

Dumps bonus.ly badges into a JSON file. Also computes pagerank on the network of badge-giving.

Dumping badges

First, get your bonus.ly API key and create a file .getsecret.yaml with the following format:

sly_api_key: YOUR_API_KEY_GOES_HERE

Then install dependencies:

install

Now run the script:

 dump_bonusly.js

The set of badges will now be in bonusly_badges.json.

Computing pagerank

Once you have dumped the badges to bonusly_badges.json, install networkx:

install networkx

And then run the script to compute pagerank:

on compute_pagerank.py

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.