demo.lua

Mon, 31 Jan 2011 03:27:53 +0100

author
Kim Alvefur <zash@zash.se>
date
Mon, 31 Jan 2011 03:27:53 +0100
changeset 6
4afd0e6206b2
parent 1
ee74a5e9419b
permissions
-rw-r--r--

Add special handling of author and link elements, and a fluffy bunny

require "feeds"

local feed = feeds.open("http://planet.jabber.org/atom.xml");

print(feed.title);
print("");

for _, entry in ipairs(feed) do
	print(entry:get_child("title"):get_text());
	print("", entry:get_child("link").attr.href);
end

mercurial