Created
December 9, 2011 22:46
-
-
Save miwillhite/1453659 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
# gem install crack | |
%w[crack open-uri].each{ |dep| require dep }; Crack::XML.parse(open("http://news.ycombinator.com/rss").read)['rss']['channel']['item'].each{ |i| puts("== #{ i['title'] } ==", "#{ i['link'] }\n\n") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment