summaryrefslogtreecommitdiff
path: root/wikifolio-comments-rss
diff options
context:
space:
mode:
Diffstat (limited to 'wikifolio-comments-rss')
-rwxr-xr-xwikifolio-comments-rss12
1 files changed, 12 insertions, 0 deletions
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))