diff options
Diffstat (limited to 'vk/utils/tracking/utils/how_much_online.py')
-rw-r--r-- | vk/utils/tracking/utils/how_much_online.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vk/utils/tracking/utils/how_much_online.py b/vk/utils/tracking/utils/how_much_online.py new file mode 100644 index 0000000..c1cf05f --- /dev/null +++ b/vk/utils/tracking/utils/how_much_online.py @@ -0,0 +1,18 @@ +# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com> +# This file is licensed under the terms of the MIT License. +# See LICENSE.txt for details. + +from vk.utils.tracking.db.reader import * + +if __name__ == '__main__': + import argparse + + parser = argparse.ArgumentParser() + + parser.add_argument('input', help='status database path') + + args = parser.parse_args() + + with csv.Reader(args.input) as csv_reader: + for record in csv_reader: + print(record.get_timestamp()) |