A Rails application to demonstrate effective management of the Gnip Historical PowerTrack APIs
JavaScript Ruby CSS CoffeeScript Shell
Switch branches/tags
Nothing to show
Latest commit 409f5ad Dec 17, 2014 @ryankicks ryankicks screenshot
Permalink
Failed to load latest commit information.
app Further reduce complexity in JobsController.create Jul 21, 2014
bin Bring the Historical API to the people! Jul 21, 2014
config Bring the Historical API to the people! Jul 21, 2014
fixtures/cassettes Bring the Historical API to the people! Jul 21, 2014
lib/gnip Bring the Historical API to the people! Jul 21, 2014
public Bring the Historical API to the people! Jul 21, 2014
spec Bring the Historical API to the people! Jul 21, 2014
vendor/assets Bring the Historical API to the people! Jul 21, 2014
.gitignore Bring the Historical API to the people! Jul 21, 2014
.powrc Bring the Historical API to the people! Jul 21, 2014
.ruby-gemset Better gemset name Jul 21, 2014
.ruby-version Bring the Historical API to the people! Jul 21, 2014
.travis.yml Bring the Historical API to the people! Jul 21, 2014
Bowerfile Bring the Historical API to the people! Jul 21, 2014
CONTRIBUTING.md Bring the Historical API to the people! Jul 21, 2014
Capfile Bring the Historical API to the people! Jul 21, 2014
Gemfile Bring the Historical API to the people! Jul 21, 2014
Gemfile.lock Bring the Historical API to the people! Jul 21, 2014
Guardfile Bring the Historical API to the people! Jul 21, 2014
LICENSE Update LICENSE Jul 17, 2014
README.md More overview of what this is Jul 21, 2014
Rakefile Bring the Historical API to the people! Jul 21, 2014
config.ru Bring the Historical API to the people! Jul 21, 2014
demo.gif Bring the Historical API to the people! Jul 21, 2014
screenshot.png screenshot Dec 17, 2014
start.sh Bring the Historical API to the people! Jul 21, 2014

README.md

Overview

Code Climate GPA Travis CI Status

A simple Rails application that uses the Gnip Historical PowerTrack API to give you complete and comprehensive access to every publicly available Tweet, ever.

This sample application demonstrates how to effectively interact with the API and manage your historical jobs.

Here's a short video showing how to get Twitter data about the 2014 World Cup matches:

Historical API Demo

Features

  • Create, estimate, accept and download Historical jobs
  • Detailed job progress
  • Filter jobs based on ID, Title, Date or Status
  • Supports IE10+, FF, Chrome, Opera 12+, Safari 5+
  • NOTE: If your expected dataset is large (over 1GB), we recommend you use a more efficient tool to parallelize file downloads

Requirements

  1. A Gnip Account with a Historical PowerTrack Subscription
  2. Ruby 2.0.x.
  3. Ruby on Rails 4.0.x.
  4. You may need Python on your PATH to install some dependencies on Windows

Setup

Open a terminal window and execute the following commands:

git clone git://github.com/twitterdev/historical-api-rails-demo.git
cd historical-api-rails-demo

Ensure the following environment variables are set:

  • GNIP_ACCOUNT = Your Gnip account.
  • GNIP_USERNAME = Your Gnip username.
  • GNIP_PASSWORD = Your Gnip password.

Usage

To run, execute bundle install and then rails s.

Testing

To test, do the following:

  1. Ruby Specs: rake spec
  2. JavaScript Specs: rake spec:javascript
  3. Both: rake test

NOTE: guard will automatically run RSpec, and CoffeeScript (sorry, no auto-jasmine yet).

Contributions

Read CONTRIBUTING for details.

Credits