Skip to content

Instantly share code, notes, and snippets.

@superfeedr
Created February 15, 2011 12:08
Show Gist options
  • Save superfeedr/827440 to your computer and use it in GitHub Desktop.
Save superfeedr/827440 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'superfeedr-rb' # [sudo] gem install
require 'pp'
# Blather.logger.level = Logger::DEBUG # increase log level to see XMPP traffic
# Please make sure you use your own superfeedr credentials (http://superfeedr.com/subscriber) as this account is wiped out regularly.
Superfeedr::Client.connect('xxx@superfeedr.com', 'yyy') do |client|
# Susbcribes to the feed :
client.feed('http://superfeedr.com/track/music') do |status, entries|
entries.each do |entry|
puts entry.to_xml # Show the XML for each notification
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment