add Feed class
This commit is contained in:
parent
7361e449b3
commit
7e96992c7f
5
rss.py
5
rss.py
|
@ -5,7 +5,10 @@ class FeedItem():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Feed():
|
class Feed():
|
||||||
pass
|
def __init__(self, title: str, url: str, items: list) -> None:
|
||||||
|
self.title = title
|
||||||
|
self.url = url
|
||||||
|
self.items = items
|
||||||
|
|
||||||
class RssReader():
|
class RssReader():
|
||||||
def convert_to_FeedItem(self, item: dict) -> FeedItem:
|
def convert_to_FeedItem(self, item: dict) -> FeedItem:
|
||||||
|
|
Loading…
Reference in a new issue