Created
February 15, 2011 12:08
-
-
Save superfeedr/827440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('[email protected]', '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