add get_items method

This commit is contained in:
mitsuha_s 2022-05-29 20:28:48 +00:00
parent 1dd2ccfc6e
commit 669bc48a37

5
rss.py
View file

@ -14,7 +14,10 @@ class RssReader():
pass pass
def get_items(self, items: list) -> list: 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: def get_feed(self, url: str) -> Feed:
f = feedparser.parse(url) f = feedparser.parse(url)