mirror of https://github.com/scrapy/scrapy.git
removed obsolete pipeline
This commit is contained in:
parent
7c049d2ef5
commit
fcb33c7988
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Pipeline to print Items
|
||||
"""
|
||||
from scrapy import log
|
||||
from scrapy.core.exceptions import NotConfigured
|
||||
from scrapy.conf import settings
|
||||
|
||||
class ShowItemPipeline(object):
|
||||
def __init__(self):
|
||||
if not settings['DEBUG_SHOWITEM']:
|
||||
raise NotConfigured
|
||||
|
||||
def process_item(self, domain, item):
|
||||
log.msg("Scraped: \n%s" % repr(item), log.DEBUG, domain=domain)
|
||||
return item
|
||||
Loading…
Reference in New Issue