hey /g/,
i have this .json file (with tweets in it, duh) how can i count how many tweets are in there ?
preferably some kind of python script would be nice
thank you
>>52195883
who's that harlot?
>>52195897
https://en.wikipedia.org/wiki/Emilie_Marie_Nereng
I won't give you the code, but have a look at some features of the json markup for that content, what gets repeated when (and only when?) a tweet is listed? I'd imagine this would be piss easy with a spreadsheet application, but iterating through each line and checking for certain features would work too.
>>52195883
Well its easy just use the Python library for json and usw the build in function. Vor gwark and awk
>>52195883
> Baby's first regex
>>52195906
import json
with open('data.json') as data_file:
data = json.load(data_file)
https://stedolan.github.io/jq/manual/
Gah so pretty
>>52196037
dafuq is this
bump 4 jesus
>>52195941
>>52195963
These work but are far more effort than necessary
>>52195953
>>52195967
Only sane choice.
>>52198558
i don't get it
>>52196097
Nigga, you stupid? JQ is how you query/parse JSON. Learn it, faggot.
>>52201597
isn't there a simple python script somewhere that could count the tweets in a json file ?
>>52203221
you could find a feature that occurs once per tweet, like user id or something, save the JSON file as a text file and use the built in reader library to parse for that feature name line-by-line, just have a counter or something.