diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-11-22 19:33:30 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-11-22 19:42:11 +0100 |
commit | 05fc177b2986556df92aa0f506b1a48ef964fe19 (patch) | |
tree | 0df953ef457ea220431b109c97225486d6111678 /wikifolio-trades-rss | |
parent | 413051037749da90f03055bcd305c82b1ee90afd (diff) | |
download | wikifolio-rss-05fc177b2986556df92aa0f506b1a48ef964fe19.tar.gz wikifolio-rss-05fc177b2986556df92aa0f506b1a48ef964fe19.zip |
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)) |