Twitter JSONParser UTF8.py
__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 =
| Penerbit | Taratsa |
|---|---|
| Tahun | 2017-01-28 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:d0f6f96b-95ff-57c7-abb3-72a7e9109fa5 |