summaryrefslogtreecommitdiff
path: root/wikifolio-comments-rss
blob: 9f1cc6f0bdfdfda169c0611dbb3929a818de0eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))