개발/Python
파이썬 json 파싱 및 엑셀 파일 저장
- json 파일 파싱 - 엑셀 파일 저장 (openpyxl) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import json from openpyxl import Workbook with open('./detail.json') as file: # open json file data = json.load(file) # load json data wb = Workbook() # create xlsx file ws = wb.active # create xlsx sheet ws.append(['ip', 'vpn', 'proxy', 'country', 'result']) # input header (first row) for data in data['data']: ws.append([data['..
2020. 10. 20. 10:25