add get_items method
This commit is contained in:
parent
1dd2ccfc6e
commit
669bc48a37
5
rss.py
5
rss.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue