Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Created December 8, 2009 18:56
Show Gist options
  • Save adamhunter/251890 to your computer and use it in GitHub Desktop.
Save adamhunter/251890 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'feedzirra'
require 'httparty'
class GithubFeed
include HTTParty
class Parser < HTTParty::Parser
SupportedFormats = {'application/atom+xml' => :atom}
def atom
Feedzirra::Feed.parse(@body)
end
end
parser GithubFeed::Parser
end
url = 'http://github.com/adamhunter.atom'
feed = GithubFeed.get(url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment