Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
import codecs
import csv
import os
import datakit
URL = ''
OUTPUT_FILE_PATH = '/src/data/output.csv'
# GET raw data, '/tmp/')
# UNZIP data
datakit.unzip('/tmp/', '/tmp')
# CONVERT data into CSV
with open(OUTPUT_FILE_PATH, 'w', newline='') as output:
spamwriter = csv.writer(output, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
with'/tmp/ginkositen.txt', 'r', 'shiftjis') as input:
spamreader = csv.reader(input, delimiter=',', quotechar='"')
for row in spamreader:
spamwriter.writerow([x.strip() for x in row])