From 51c9754ad88bac1c6d2106fdd56bacb88346db75 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 29 May 2022 20:29:51 +0000 Subject: [PATCH] add FeedItem class --- rss.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rss.py b/rss.py index 8f747ce..f54f9c0 100644 --- a/rss.py +++ b/rss.py @@ -2,7 +2,10 @@ import feedparser class FeedItem(): - pass + def __init__(self, url: str, title: str, description: str) -> None: + self.url = url + self.title = title + self.description = description class Feed(): def __init__(self, url: str, items: list) -> None: