ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
# try to link a given reddit comment to a YouTube video | |
# only looks at top-level comments | |
# will pull a direct YouTube link out if exists | |
# otherwise, will count on the majik of Google's "I'm Feeling Lucky" + Video search | |
require 'json' | |
require 'open-uri' | |
# read the comments LIKE A BAWS | |
contents = open("http://www.reddit.com/r/running/comments/21c8u5/when_this_song_hits_your_ipod_you_explode_with.json?limit=500").read |