summaryrefslogtreecommitdiff
path: root/wikifolio-rss
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-11-22 19:33:30 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-11-22 19:42:11 +0100
commit05fc177b2986556df92aa0f506b1a48ef964fe19 (patch)
tree0df953ef457ea220431b109c97225486d6111678 /wikifolio-rss
parent413051037749da90f03055bcd305c82b1ee90afd (diff)
downloadwikifolio-rss-05fc177b2986556df92aa0f506b1a48ef964fe19.tar.gz
wikifolio-rss-05fc177b2986556df92aa0f506b1a48ef964fe19.zip
some refactoring before moving it to githubHEADmaster
Diffstat (limited to 'wikifolio-rss')
-rwxr-xr-xwikifolio-rss19
1 files changed, 0 insertions, 19 deletions
diff --git a/wikifolio-rss b/wikifolio-rss
deleted file mode 100755
index 5034dd7..0000000
--- a/wikifolio-rss
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/python3
-import os
-import sys
-import logging
-
-import wikifolio
-import wikifolio.rss
-import os
-
-logging.basicConfig(level=logging.INFO)
-
-if len(sys.argv) == 2 and os.path.exists(sys.argv[1]):
- filename = sys.argv[1]
- name = os.path.basename(filename)
- name, _ = os.path.splitext(name)
- cert = wikifolio.get_id_from_name(name)
- comments = wikifolio.get_comments(cert)
- with open(filename, "w") as f:
- f.write(wikifolio.rss.dump(cert, comments))