# rssion.py - a very simple RSS processor
# Parses RSS feeds into a form the Psion Organiser II can understand!
# Place this in a folder along with a text file 'urls.txt'
# Put the URL of each feed you wish to process on a separate line in 'urls.txt'
import feedparser
url = open("urls.txt", "r")
org = open ("org.txt", "w")
for line in url:
	d = feedparser.parse(line)
	org.write(d.feed.title+"\t"+"Articles follow...\n")
	for post in d.entries:
		org.write(post.title+"\t"+post.published+"\t"+post.description+"\n")
		# warning: if all that totals >255 characters, terrible things may happen
		# check the size of the resulting file will fit in your Organiser's memory!!
url.close()
org.close()
