mirror of https://github.com/scrapy/scrapy.git
docs/tutorial: added reminder about adding pipeline to ITEM_PIPELINES settings (thanks jamie)
This commit is contained in:
parent
04610a25dc
commit
befd28eef4
|
|
@ -416,7 +416,7 @@ creation step, it's in ``dmoz/pipelines.py`` and looks like this::
|
|||
We have to override the ``process_item`` method in order to store our Items
|
||||
somewhere.
|
||||
|
||||
Here's an example pipeline for storing the scraped items into a CSV (comma
|
||||
Here's a simple pipeline for storing the scraped items into a CSV (comma
|
||||
separated values) file using the standard library `csv module`_::
|
||||
|
||||
import csv
|
||||
|
|
@ -432,6 +432,12 @@ separated values) file using the standard library `csv module`_::
|
|||
|
||||
.. _csv module: http://docs.python.org/library/csv.html
|
||||
|
||||
|
||||
Don't forget to enable the pipeline by adding it to the
|
||||
:setting:`ITEM_PIPELINES` setting in your settings.py, like this::
|
||||
|
||||
ITEM_PIPELINES = ['dmoz.pipelines.CsvWriterPipeline']
|
||||
|
||||
Finale
|
||||
======
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue