Skip to content

Instantly share code, notes, and snippets.

@particlebanana
Created June 27, 2011 21:12
Show Gist options
  • Save particlebanana/1049849 to your computer and use it in GitHub Desktop.
Save particlebanana/1049849 to your computer and use it in GitHub Desktop.
Parse an Instapaper RSS Folder Feed
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