Created
June 27, 2011 21:12
-
-
Save particlebanana/1049849 to your computer and use it in GitHub Desktop.
Parse an Instapaper RSS Folder Feed
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 'net/http' | |
require 'uri' | |
require 'rexml/document' | |
uri = URI.parse("ADD YOUR INSTAPAPER RSS FEED LINK HERE") | |
data = Net::HTTP.get_response(uri) | |
doc = REXML::Document.new(data.body) | |
doc.elements.each('rss/channel/item') do |s| | |
puts s[1][0] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment