I have a list of JSON twitter files that I read into a list in Python like so:
data5=[]
with codecs.open('twitFile_5.txt','rU') as file5:
for line in file5:
data5.append(json.loads(line))
I can select "text" for example to give me a selected tweet
data5[1]["text"]
However I don't know how to
1) just make a list of all the "text" items
2) search that "text" list and count the number of times a list of phrases is mentioned in the text e.g. ['apple', 'orange fruit', 'bunch of bananas'].
Thanks.