mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-25 00:24:31 +00:00
added doc on how to enable an Item Pipeline component
This commit is contained in:
parent
404e7e09d7
commit
fd41f06056
@ -58,6 +58,16 @@ attribute), and drops those items which don't contain a price::
|
||||
raise DropItem("Missing price in %s" % item)
|
||||
|
||||
|
||||
Activating a Item Pipeline component
|
||||
====================================
|
||||
|
||||
To activate an Item Pipeline component you must add its class to the
|
||||
:setting:`ITEM_PIPELINES` list, like in the following example::
|
||||
|
||||
ITEM_PIPELINES = [
|
||||
'myproject.pipeline.PricePipeline',
|
||||
]
|
||||
|
||||
Item pipeline example with resources per domain
|
||||
===============================================
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user