blob: 3bd53dcbccaf5e9625eb8ac6a0b72e2f50727556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/python3
import os
import sys
import logging
import wikifolio
logging.basicConfig(level=logging.INFO)
if len(sys.argv) == 2 and os.path.exists(sys.argv[1]):
filename = sys.argv[1]
name, _ = os.path.splitext(filename)
cert = wikifolio.get_id_from_name(name)
trades = wikifolio.get_trades(cert)
for trade in trades:
print(repr(trade))
|