擅长:python、mysql、java
<h2>Scrapy 1.5.0版</h2>
<h3>你的计划/出口商.py</h3>
<pre><code>from scrapy.conf import settings
from scrapy.exporters import CsvItemExporter
class MyCsvItemExporter(CsvItemExporter):
def __init__(self, *args, **kwargs):
delimiter = settings.get('CSV_DELIMITER', ';')
kwargs['delimiter'] = delimiter
super(MyCsvItemExporter, self).__init__(*args, **kwargs)
</code></pre>
<h3>你的计划/设置.py</h3>
^{pr2}$