A
Size: a a a
A
B
B
with open(self.output, 'w', encoding='utf-8', newline="") as f:
writer = csv.writer(f)
for price in response.css("ins.lower-price").getall():
writer.writerow([price, ])
B
self.outputМ
self.outputB
start_urls = ['https://www.wildberries.ru/brands/wb', 'https://www.wildberries.ru/brands/wb?page=2']
def parse(self, response):
with open(self.output, 'w', encoding='utf-8', newline="") as f:
writer = csv.writer(f)
for price in response.css("ins.lower-price").getall():
writer.writerow([price, ])
yield response.css("ins.lower-price").getall()
csv. scrapy crawl spider -o output.csv. То что ему ретурнишь yield-ом.A
csv. scrapy crawl spider -o output.csv. То что ему ретурнишь yield-ом.B
B
A
ModuleNotFoundError: No module named 'prices'
A
NameError: Module 'prices' doesn't define any object named 'csv'
A

B

B
ModuleNotFoundError: No module named 'prices'
pricesA
B
A
A
pricesA