Cleaning Twitter JSON data in Processing
I won’t go into the method of collecting tweets using python; but instead direct you to this article that uses the Tweet Search script to mine for tweets and save them to a JSON file. This article launches right into the process of opening the saved JSON file.
import json tweetLocations =  with open('../slippy_map_test/festival_2017-09-25.json') as f: for row in f: data = json.loads(row) geo = data['geo']
if geo is not None: tweetLocations.append(geo) print geo