Mon, 06 Dec 2010 04:38:47 +0000
Rename xmppstream to xmlstream, and make some changes to make it compatible with Prosody
1 | 1 | require "feeds" |
2 | ||
3 | local feed = feeds.open("http://planet.jabber.org/atom.xml"); | |
4 | ||
5 | print(feed.title); | |
6 | print(""); | |
7 | ||
8 | for _, entry in ipairs(feed) do | |
9 | print(entry:get_child("title"):get_text()); | |
10 | print("", entry:get_child("link").attr.href); | |
11 | end |