Untitled
unknown
plain_text
a year ago
281 B
14
Indexable
import csv
items = json_data['data']['varietyCollection']['items']
with open('output.csv', 'w', newline='') as csvfile:
fieldnames = items[0].keys()
writer = csv.writer(csvfile)
writer.writerow(fieldnames)
for item in items:
writer.writerow(item.values())
Editor is loading...
Leave a Comment