diff options
Diffstat (limited to 'wikifolio-trades-rss')
-rwxr-xr-x | wikifolio-trades-rss | 12 |
1 files changed, 12 insertions, 0 deletions
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)) |