As I scrape data from the web, I am facing an issue with my csv file where the links column is always displayed as the first column. How can I specify the placement of columns in the csv file?
pName = response.css('#search .a-size-medium').css('::text').extract()
pPrice = response.css('#search .a-price-whole').css('::text').extract()
imgs = response.css('.sbv-product-img , .s-image-fixed-height .s-image').css('::attr(src)').extract()
for prod in zip(pName , pPrice , imgs):
items['prodName'] = prod[0]
items['price'] = prod[1]
items['imgLink'] = prod[2]
yield items