I am trying to read data from directory and trying to parse that data and finally trying to write it to another directory.
for this i am using Jython Evaluator. Here is my code:
import sys
sys.path.append('/usr/lib/python2.7/site-packages')
import feedparser
for record in records:
myfeed = feedparser.parse(str(record))
for item in myfeed['items']:
title = item.title
link = item.link
output.write(record)
I am able to write data to output, but my requirement is write title and link which are parsed from input record.
Here is my code snippet:
any suggestions please.
Thanks in advance.