From 7361e449b30dbbf8ea8bf0b243bb9315099b7637 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 29 May 2022 20:17:03 +0000 Subject: [PATCH] create rss module, add RssReader class --- requirements.txt | 1 + rss.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 rss.py diff --git a/requirements.txt b/requirements.txt index 8b2e6e8..5a8b4cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ idna==3.3 pyTelegramBotAPI==4.5.0 requests==2.27.1 urllib3==1.26.9 +feedparser==6.0.2 \ No newline at end of file diff --git a/rss.py b/rss.py new file mode 100644 index 0000000..b309f20 --- /dev/null +++ b/rss.py @@ -0,0 +1,20 @@ +import feedparser + + +class FeedItem(): + pass + +class Feed(): + pass + +class RssReader(): + def convert_to_FeedItem(self, item: dict) -> FeedItem: + pass + + def get_items(self, items: list) -> list: + pass + + def get_feed(self, url: str) -> Feed: + pass + +