Skip to content

Instantly share code, notes, and snippets.

@jnicho02
Last active April 8, 2016 17:19
Show Gist options
  • Save jnicho02/49e0e3565635a0d4dd522b6d66bfcaf9 to your computer and use it in GitHub Desktop.
Save jnicho02/49e0e3565635a0d4dd522b6d66bfcaf9 to your computer and use it in GitHub Desktop.
matching Leeds Data Mill blue plaques to Open Plaques
source "https://rubygems.org"
gem 'ckan', github: 'fishpercolator/CKAN'
gem 'open_uri_redirections'
require 'rubygems'
require 'bundler/setup'
Bundler.require
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
lbq = CKAN::Package.find(name: 'blue-plaques-of-leeds').first.resources.first.content_csv
lbq.select {|r| r[:stars_beer] == 5}.each {|r| puts r[:name]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment