Created
March 2, 2016 00:12
-
-
Save indygreg/c1c203f1028af0ca3dc0 to your computer and use it in GitHub Desktop.
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
import gzip | |
import json | |
import sys | |
with gzip.GzipFile(sys.args[1], mode='r') as fh: | |
line = fh.readline() | |
if not line: | |
break | |
data = json.loads(line) | |
time, event, event_id, sha = data[0:4] | |
payload = json.loads(data[4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment