add get_items method

This commit is contained in:
mitsuha_s 2022-05-29 20:28:48 +00:00
parent 1dd2ccfc6e
commit 669bc48a37
1 changed files with 4 additions and 1 deletions

5
rss.py
View File

@ -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)