summaryrefslogtreecommitdiff
path: root/wikifolio-rss
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-03-01 23:34:05 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-03-01 23:34:05 +0100
commit413051037749da90f03055bcd305c82b1ee90afd (patch)
treedb3df6acc3037eb6a8e02e6345908f7b94c3cb33 /wikifolio-rss
parent31ec72ec239656655c3c1bab84efcca01b7fdd6c (diff)
downloadwikifolio-rss-413051037749da90f03055bcd305c82b1ee90afd.tar.gz
wikifolio-rss-413051037749da90f03055bcd305c82b1ee90afd.zip
Add script to read trades
Diffstat (limited to 'wikifolio-rss')
-rwxr-xr-xwikifolio-rss3
1 files changed, 2 insertions, 1 deletions
diff --git a/wikifolio-rss b/wikifolio-rss
index e285f06..5034dd7 100755
--- a/wikifolio-rss
+++ b/wikifolio-rss
@@ -5,13 +5,14 @@ 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 = name[:name.find('.')]
+ name, _ = os.path.splitext(name)
cert = wikifolio.get_id_from_name(name)
comments = wikifolio.get_comments(cert)
with open(filename, "w") as f: