Untitled
unknown
plain_text
22 days ago
281 B
6
Indexable
Never
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())
Leave a Comment