RSS module #19

Merged
Miroslavsckaya merged 8 commits from feature_rss into master 2022-05-29 20:13:40 +00:00
Showing only changes of commit ba2ff845d3 - Show all commits

8
rss.py
View file

@ -14,7 +14,13 @@ class Feed():
class RssReader():
def convert_to_FeedItem(self, item: dict) -> FeedItem:
pass
if 'title' in item:
title = item['title']
if 'link' in item:
url = item['link']
if 'summary' in item:
description = item['summary']
return FeedItem(url, title, description)
def get_items(self, items: list) -> list:
list_items = []