add FeedItem class

This commit is contained in:
mitsuha_s 2022-05-29 20:29:51 +00:00
parent 669bc48a37
commit 51c9754ad8

5
rss.py
View file

@ -2,7 +2,10 @@ import feedparser
class FeedItem(): class FeedItem():
pass def __init__(self, url: str, title: str, description: str) -> None:
self.url = url
self.title = title
self.description = description
class Feed(): class Feed():
def __init__(self, url: str, items: list) -> None: def __init__(self, url: str, items: list) -> None: