Skip to content

Instantly share code, notes, and snippets.

@caius
Forked from wjessop/yahoo-group-data.rb
Created February 6, 2012 11:53
Show Gist options
  • Save caius/1751737 to your computer and use it in GitHub Desktop.
Save caius/1751737 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'cgi'
url = "http://tech.dir.groups.yahoo.com/group/OneStopCOBOL"
json = open("http://yahoo-group-data.herokuapp.com/api/v1/group/#{CGI.escape(url)}").read
json = json.force_encoding("utf-8") if RUBY_VERSION[/1\.9/]
puts json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment