Hello,
I want to manipulate feed which contains frequently updated (with time) contents using feed parser. Goal is to show all the contents of the updated feed.
import feedparser
d = feedparser.parse("some URL")
print "Information of user"
i = range(10)
for i in d:
print d.entries[i].summary
print " "
As parsing data is list, and list don't accept string as indices, it shows error
like:
File "F:\JavaWorkspace\Test\src\rss_parse.py", line 18, in <module>
print d.entries[i].summary
TypeError: list indices must be integers
Then how can I get all contents? can anyone please show me some light on this issue? Thanks in advance!