add Feed class

This commit is contained in:
mitsuha_s 2022-05-29 20:18:12 +00:00
parent 7361e449b3
commit 7e96992c7f

5
rss.py
View file

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