rss_start = """<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
  <title>Your title</title>
  <link>http://yoursite.com</link>
  <description>Your discription</description>
"""
rss_end = """</channel>
</rss> """

def description(item):
    return item

def title(item):
    return item.split('\n')[0]
Generating simple RSS feed from parsed data