Last active
April 8, 2016 17:19
-
-
Save jnicho02/49e0e3565635a0d4dd522b6d66bfcaf9 to your computer and use it in GitHub Desktop.
matching Leeds Data Mill blue plaques to Open Plaques
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem 'ckan', github: 'fishpercolator/CKAN' | |
gem 'open_uri_redirections' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
using https://medium.com/@fishpercolator/accessing-open-data-from-ruby-code-d4f07242cc37#.whtfah22u