Created
January 16, 2013 08:48
-
-
Save enachb/4545621 to your computer and use it in GitHub Desktop.
usage: python ~/json_utc_prefix.py part-* | sort -nr -k 1,1 | less aka show me all the latest posts
This file contains hidden or 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 sys,json,fileinput | |
| for line in fileinput.input(): | |
| obj = json.loads(line) | |
| # if obj["pageId"] == "AmericanIdol": | |
| print "%s %s" % (obj["utc"],obj["pageId"]) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python ~/json_parse.py fbComment-377453.dmp fbComment-377454.tmp | awk '{print $1}' | sort | uniq -c | sort -n