require “net/http” feedurl = ‘http://blog.botfu.com/?feed=rss2’ pagedata = Net::HTTP.get_response(URI.parse(feedurl)) puts pagedata.body
This little bit of code simply grabs the RSS feed of this very blog and dumps it out to the screen (so yes, it’s a bit of generic screen scrape code). Nothing too fancy, but it’s actually a VERY powerful bit of code that I use in a lot of quick hacks…and best of all it’s only a line or two of actual code. Anyway, I just thought I would share that little tidbit tonight. I’m going to be cleaning up some of my back end processing code for the Draftwizard challenges (and other things), and so I’ll probably dip back into Ruby then (some of it’s already in Ruby, and some is in Java – I think I would prefer to move it all to Ruby over time). So what’s your favorite back end processing language of de’ jour?This post has received 47 loves.
This is the personal blog of Kevin Marshall (a.k.a Falicon) where he often digs into side projects he's working on for digdownlabs.com and other random thoughts he's got on his mind.
Kevin has a day job as CTO of Veritonic and is spending nights & weekends hacking on Share Game Tape. You can also check out some of his open source code on GitHub or connect with him on Twitter @falicon or via email at kevin at falicon.com.
If you have comments, thoughts, or want to respond to something you see here I would encourage you to respond via a post on your own blog (and then let me know about the link via one of the routes mentioned above).