From 05fc177b2986556df92aa0f506b1a48ef964fe19 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 22 Nov 2016 19:33:30 +0100 Subject: some refactoring before moving it to github --- wikifolio-comments-rss | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 wikifolio-comments-rss (limited to 'wikifolio-comments-rss') diff --git a/wikifolio-comments-rss b/wikifolio-comments-rss new file mode 100755 index 0000000..9f1cc6f --- /dev/null +++ b/wikifolio-comments-rss @@ -0,0 +1,12 @@ +#!/usr/bin/python3 +import sys +import logging +import wikifolio.rss + +logging.basicConfig(level=logging.INFO) + +if len(sys.argv) == 2: + name = sys.argv[1] + zertifikat_id = wikifolio.get_id_from_name(name) + comments = wikifolio.get_comments(zertifikat_id) + print(wikifolio.rss.dump_comments(zertifikat_id, comments)) -- cgit v1.2.1