text: from scrapy.conf import settings
  from scrapy.contrib.exporter import CsvItemExporter
  
  
  class itemcsvexporter(CsvItemExporter):
  
      def __init__(self, *args, **kwargs):
          delimiter = settings.get('CSV_DELIMITER', ',')
          kwargs['delimiter'] = delimiter
  
          fields_to_export = settings.get('FIELDS_TO_EXPORT', [])
          if fields_to_export:
              kwargs['fields_to_export'] = fields_to_export
  
          super(itemcsvexporter, self).__init__(*args, **kwargs)