Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Facebook Scraper for the Punch Time Explosion Fan Page

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 stats.rb
Octocat-spinner-32 travis.rb
README.md

travis.rb

This is a very basic Facebook scraper that scrapes the Punch Time Explosion fan page posts and comments - this was built for the purpose of doing some basic statistical analysis on Travis Cox's, um, interesting posts.

It imports all posts into a mongodb database, so you'll need ruby and the Mongoid gem. Run it as follows:

$ ruby travis.rb fb_api_key

You can get a Facebook API key at https://developers.facebook.com/tools/explorer - just click "Get Access Token" then copy-paste.

There's a basic stats.rb file as an example of the kind of stats that can be generated. Future ideas for expansion would be sentiment analysis, writing level analysis, posts-per-month, etc.

Thanks for the fun, Travis! :)

Something went wrong with that request. Please try again.