Answer the question
In order to leave comments, you need to log in
How to tell an Excel cell to write a specific value to it from Python?
I connect
import csv
I iterate over the array
with open(path, 'w', newline='') as file:
writer = csv.writer(file, delimiter=';')
writer.writerow(['Название', 'Цена', 'Ссылка'])
for item in items:
writer.writerow([item['title'], item['price'], item['link_product']])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question