Skip to content

Instantly share code, notes, and snippets.

@indygreg
Created March 2, 2016 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indygreg/c1c203f1028af0ca3dc0 to your computer and use it in GitHub Desktop.
Save indygreg/c1c203f1028af0ca3dc0 to your computer and use it in GitHub Desktop.
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