This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import sys | |
import gzip | |
import json | |
input_json = sys.argv[1] | |
with gzip.open(input_json, 'rt') as f: | |
for line in f: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import csv | |
import os | |
import sys | |
import gzip | |
from collections import defaultdict | |
import argparse | |
# See http://stackoverflow.com/questions/14207708/ioerror-errno-32-broken-pipe-python |