Pustaka Taratsa
Twitter JSONParser UTF8.py

Twitter JSONParser UTF8.py

Penulis: Onno Widodo Purbo

__author__ = 'seandolinar' import json import csv import io creates a .csv file using a Twitter .json file the fields have to be set manually data_json = io.open('raw_tweets.json', mode='r', encoding='utf-8').read() #reads in the JSON file data_python = json.loads(data_json) csv_out = io.open('tweets_out_utf8.csv', mode='w', encoding='utf-8') #opens csv file fields =