1
0
Fork 0
forked from wezm/wezm.net

QA /technical/2009/06/virtualbox-news-atom-feed/

This commit is contained in:
Wesley Moore 2010-03-22 17:51:33 +11:00
parent 0fd947ecfb
commit dd6bab4d06

View file

@ -1,6 +1,6 @@
A few days ago I decided I wanted a feed of the <a href="http://www.virtualbox.org/wiki/News">VirtualBox News</a> page. I mainly wanted this to know when new releases are made. Whilst the application does update itself, sometimes I go a while without firing it up so seeing the release in <a href="http://feedafever.com/">Fever</a> would be nice.
After some brief Googling I didn't come across anything that was obviously designed to create feeds from Ruby (outside of Rails). So I opened up the <a href="http://tools.ietf.org/html/rfc4287">Atom Feed spec</a> and built the feed manually. The end result is a Ruby script and a feed (updated daily) at: <a href="http://home.wezm.net/files/virtualbox.atom">http://home.wezm.net/files/virtualbox.atom</a>. Thanks to the brilliant <a href="http://nokogiri.rubyforge.org/nokogiri/">nokogiri</a> this was relatively straightforward.
After some brief Googling I didn't come across anything that was obviously designed to create feeds from Ruby (outside of Rails). So I opened up the <a href="http://tools.ietf.org/html/rfc4287">Atom Feed spec</a> and built the feed manually. <del datetime="2010-03-22T06:50:25+00:00">The end result is a Ruby script and a feed (updated daily) at: <a href="http://home.wezm.net/files/virtualbox.atom">http://home.wezm.net/files/virtualbox.atom</a>.</del> Thanks to the brilliant <a href="http://nokogiri.rubyforge.org/nokogiri/">nokogiri</a> this was relatively straightforward.
My script is below:<!--more-->
<script src="http://gist.github.com/137179.js"></script>
<script src="http://gist.github.com/137179.js"></script>