Buzzr

A simple wrapper to help retrieve and parse the Google Buzz Atom Feed.

Coming soon - subscribing to updates, posting to feed

Install

gem install buzzr

Buzzr is hosted on the Gemcutter repository. It depends on the RAtom library - http://github.com/seangeo/ratom

Example

require 'buzzr'

feed_url = Buzzr::Feed.discover("conorhunt")
feed = Buzzr::Feed.retrieve(feed_url)

feed.entries.each do |entry|
  puts "Title: #{entry.title}"
  puts "Author: #{entry.author.name}"
  puts "Comment Count: #{entry.comment_count}"
  puts "Content"
  puts entry.content
  puts

  if entry.urls.length > 0
    puts "Links"
    entry.urls.each {|u| puts "URI: #{u}" }
    puts
  end

  if entry.images.length > 0
    puts "Images"
    entry.images.each {|i| puts "URI: #{i}" }
    puts
  end

  if entry.videos.length > 0
    puts "Videos"
    entry.videos.each {|v| puts "URI: #{v}" }
    puts
  end

  if entry.comment_count > 0
    puts "Comments"
    puts
    entry.comments.each do |comment|
      puts "Author: #{comment.author.name}"
      puts "#{comment.content}"
      puts
    end
  end
  puts "------"
  puts
end

Notes

Props to Psi http://github.com/psi for the awesome name. Way better than Rbuzz :)

Copyright (c) 2010 Conor Hunt [email protected] Released under the MIT license