Skip to content

Instantly share code, notes, and snippets.

@andry1
Created May 13, 2014 18:41
Show Gist options
  • Save andry1/f57d3e9465209380fe7c to your computer and use it in GitHub Desktop.
Save andry1/f57d3e9465209380fe7c to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'json'
require 'json/add/core'
require 'open-uri'
require 'pp'
api_results = JSON open('http://www.sport195.com/api/service/-/profiles/sports?per_page=10000').read
english_translations = JSON open('./english_translations.json').read
api_results['data'].each do |result|
display_name = result['display_name']
if !english_translations[display_name]
puts "#{display_name} not found in english translations"
elsif display_name != english_translations[display_name]
puts "#{display_name} != #{english_translations[display_name]}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment