@@ -0,0 +1,976 @@
+#!/usr/bin/env python%0A# This Source Code Form is subject to the terms of the Mozilla Public%0A# License, v. 2.0. If a copy of the MPL was not distributed with this%0A# file, You can obtain one at http://mozilla.org/MPL/2.0/.%0Afrom __future__ import division, absolute_import, with_statement, print_function, unicode_literals%0A%0Aimport sys%0Aimport gzip%0A%0Adef _main():%0A    args = _parse_args()%0A    if args.output == '-':%0A        file_handle = gzip.GzipFile(fileobj=sys.stdout, mode='ab')%0A    else:%0A        file_handle = gzip.open(args.output, 'ab')%0A%0A    data = sys.stdin.readline()%0A    while data:%0A        file_handle.write(data)%0A        data = sys.stdin.readline()%0A%0Adef _parse_args():%0A    import argparse%0A    parser = argparse.ArgumentParser(description=%22Store MultiScanner output as a gzip file%22)%0A    parser.add_argument('output', help=%22The file to write%22, metavar=%22filepath%22, default='report.json.gz', nargs='?')%0A    return parser.parse_args()%0A%0Aif __name__ == '__main__':%0A    _main()%0A

Add gzip output script