Skip to content

Instantly share code, notes, and snippets.

@fearoffish
Created December 21, 2010 12:56
Show Gist options
  • Save fearoffish/749899 to your computer and use it in GitHub Desktop.
Save fearoffish/749899 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'hpricot'
require 'open-uri'
url = "http://bensbargains.net/rss.xml/0"
rss = Hpricot.XML(open(url))
links = rss.search("link")
links.each do |link|
puts link.inner_html
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment