Quantcast
Channel: How to obtain field names of RSS feed(xml file) in python dynamically using feedparser? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How to obtain field names of RSS feed(xml file) in python dynamically using feedparser?

$
0
0

I have used feedparser library in python to read rss feeds from particlar URL. the feeds are received in 'fee' variable by using following line of code:

fee =  feedparser.parse('http://www.indiatimes.com/r/python/.rss')

fee contains feed in list of list format. The format and the data we get in this is complex and not fixed.

I want to obtain names of fields(keys) of this RSS feed dynamically. How to do that?

some field names are fixed such as link, date etc. But I need names of all fields in my code.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images