Untitled
unknown
plain_text
10 months ago
281 B
11
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