Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created February 5, 2012 23:57
Show Gist options
  • Save wjessop/1748480 to your computer and use it in GitHub Desktop.
Save wjessop/1748480 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