Switch branches/tags
Nothing to show
Find file Copy path
2d8aa27 Aug 30, 2017
1 contributor

Users who have contributed to this file

19 lines (15 sloc) 462 Bytes
import codecs
import csv
import os
import requests
import zipfile
URL = ''
OUTPUT_FILE_PATH = '/src/data/output.csv'
# GET raw data
r = requests.get(URL)
with open('/tmp/raw.csv', 'wb') as file:
# CONVERT data into utf8 CSV
with open(OUTPUT_FILE_PATH, 'w', newline='') as output:
with'/tmp/raw.csv', 'r', 'shiftjis') as input: