Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import gzip
import json
import sys
with gzip.GzipFile(sys.args[1], mode='r') as fh:
line = fh.readline()
if not line:
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