The additional keyword arguments of this constructor are passed to the BaseItemExporter constructor, and the leftover arguments to the csv.writer constructor, so you can use any csv.writer constructor argument to customize this exporter.
I need to change default COMMA delimiter to TAB in CSV exporter,since my data do contain commas.Is there a way to do it without diving deep into the code (../scrapy/contrib/exporter/__init__.py)?and/or creating my own exporter?I will be very helpful for all suggestions.R
from scrapy.contrib.exporter import CsvItemExporter
exporter = CsvItemExporter( somefile, delimiter = '\t')
Well... all in all, it seems that this single line change is the simplest solution:...scrapy/contrib/exporter/__init__.py
[...]class CsvItemExporter(BaseItemExporter):self.csv_writer = csv.writer(file, delimiter='\t', **kwargs)[...]
R