Pustaka Taratsa
Twitter JSONParser ASCII.py

Twitter JSONParser ASCII.py

Penulis: Onno Widodo Purbo

__author__ = 'seandolinar' import json import csv creates a .csv file using a Twitter .json file the fields have to be set manually data_json = open('raw_tweets.json', mode='r').read() #reads in the JSON file into Python as a string data_python = json.loads(data_json) #turns the string into a json Python object csv_out = open('tweets_out_ASCII.csv', mode='w') #opens csv file writer =