From 13ea52ef804ee8eacbbd0346439cf0d76de39005 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 19 Mar 2020 09:47:58 +0100 Subject: [PATCH] feeds: add .torss() --- morss/feeds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morss/feeds.py b/morss/feeds.py index 0fee42b..cdd4f1c 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -138,6 +138,9 @@ class ParserBase(object): # to output in sth fancy (json, csv, html), change class type pass + def torss(self): + return self.convert(FeedXML).tostring() + def tojson(self): return self.convert(FeedJSON).tostring()