Project

rbuzz

0.01
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for Google Buzz atom feeds
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0.6.3
 Project Readme

Ruby Buzz - RBuzz

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

Coming soon - subscribing to updates, posting to feed

Note: This library was renamed from Buzzr to Ruby Buzz. Buzzr.com sent me a friendly trademark infringement notice and threatened a lawsuit.

Install

gem install rbuzz

Example

require 'rbuzz'

feed_url = Rbuzz::Feed.discover("conorhunt")
# Or, using webfinger (see https://groups.google.com/group/webfinger/browse_thread/thread/fb56537a0ed36964/c51e559c8f8d5455)
# Rbuzz::Feed.discover_by_email("bradfitz@gmail.com")
feed = Rbuzz::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

CONTRIBUTORS

Alexandr Zykov (github: alexandrz)

COPYRIGHT

Copyright (c) 2010 Conor Hunt conor.hunt@gmail.com Released under the MIT license