mirror of https://github.com/scrapy/scrapy.git
ScrapedItem cannot have a constructor that receives the adaptor_pipe. adaptor_pipe must be assigned by calling set_adaptors() from the outside (typically in a spider)
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40342
This commit is contained in:
parent
ebe847bc6b
commit
23524ccc86
|
|
@ -8,10 +8,6 @@ class ScrapedItem(object):
|
|||
that identifies uniquely the given scraped item.
|
||||
"""
|
||||
|
||||
def __init__(self, adaptors_pipe={}):
|
||||
self.set_adaptors(adaptors_pipe)
|
||||
pass
|
||||
|
||||
def set_adaptors(self, adaptors_pipe):
|
||||
"""
|
||||
Set the adaptors to use for this item. Receives a dict of the adaptors
|
||||
|
|
|
|||
Loading…
Reference in New Issue