add FeedItem class
This commit is contained in:
parent
669bc48a37
commit
51c9754ad8
5
rss.py
5
rss.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue