View Single Post
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#1059
Code:
import feedparser
f = feedparser.parse('http://example.org/feed.rss')
print f.entries[0].title
execute: ....

/home/developer $ python /home/user/.scripts/rss.py
Traceback (most recent call last):
File "/home/user/.scripts/rss.py", line 3, in <module>
print f.entries[0].title
IndexError: list index out of range

What's wrong?

Last edited by Alexxxl; 2014-01-10 at 11:55.