Skip to content

Instantly share code, notes, and snippets.

@enachb
Created January 16, 2013 06:57
Show Gist options
  • Select an option

  • Save enachb/4545183 to your computer and use it in GitHub Desktop.

Select an option

Save enachb/4545183 to your computer and use it in GitHub Desktop.
read input files from command line and filter json
import sys,json,fileinput
for line in fileinput.input():
obj = json.loads(line)
if obj["pageId"] == "AmericanIdol":
print obj["utc"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment