Answer the question
In order to leave comments, you need to log in
How to fix an error in the code when running on Ubuntu?
Good day.
The question will seem strange, but the code below runs perfectly and parses the title and text of the news from rss on a Windows system.
rssurl = 'https://news.yandex.ru/security.rss'
feed = feedparser.parse(rssurl)
title = feed['entries'][1]['title']
text = feed['entries'][1]['summary']
title = feed['entries'][1]['title']
IndexError: list index out of range.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question