Scripts for computing stats on SCPR media downloads
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
scripts
.gitignore
Gruntfile.coffee
README.md
generate_show_episode_reports.sh
package.json
runner-show-day
runner-show-episodes
runner-show-episodes-by-hour

README.md

scpr-media-scripts

This collection of scripts uses media data logged into Logstash / Elasticsearch to compute download and user statistics.

We've made this repo public so that we can share the methodology we're using to compute the stats, but these scripts themselves won't really be any use to you without access to our production data.

Requirements

  • Node.js 0.10
  • VPN access to logstash.i.scprdev.org (Datacenter Network)

Installation

npm install -g scpr/scpr-media-scripts

Scripts

scpr-media-show-day

Downloads by show by day. Produces a CSV with shows and dates.

Accepts start and end parameters for date range. Optionally can be given a show parameter to return data only for one show.

NOTE: Accepts type parameter with values of podcast (default) or ondemand, but ondemand is currently broken since we don't set a UUID for non-podcast downloads.