Skip to content

Instantly share code, notes, and snippets.

@enachb
Created January 22, 2013 06:44
Show Gist options
  • Select an option

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

Select an option

Save enachb/4592632 to your computer and use it in GitHub Desktop.
import sys,json,fileinput
for line in fileinput.input():
obj = json.loads(line)
# if obj["pageId"] == "AmericanIdol":
print "%s %s" % (obj["pageUrl"], obj["time"])
----------------------------------------------------------------
python ~/json_parse.py fbComment-377453.dmp fbComment-377454.tmp | awk '{print $1}' | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment