From 669bc48a377e9a1e6337156d86b29fe11a471958 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 29 May 2022 20:28:48 +0000 Subject: [PATCH] add get_items method --- rss.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rss.py b/rss.py index 0dc074e..8f747ce 100644 --- a/rss.py +++ b/rss.py @@ -14,7 +14,10 @@ class RssReader(): pass def get_items(self, items: list) -> list: - pass + list_items = [] + for item in items: + list_items.append(self.convert_to_FeedItem(item)) + return list_items def get_feed(self, url: str) -> Feed: f = feedparser.parse(url)