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-trades-rss | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 wikifolio-trades-rss (limited to 'wikifolio-trades-rss') diff --git a/wikifolio-trades-rss b/wikifolio-trades-rss new file mode 100755 index 0000000..24f98f0 --- /dev/null +++ b/wikifolio-trades-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) + trades = wikifolio.get_trades(zertifikat_id) + print(wikifolio.rss.dump_trades(zertifikat_id, trades)) -- cgit v1.2.1