Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

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)

Pablo Hoffman23524ccc86ae
diff --git a/scrapy/trunk/scrapy/item/models.py b/scrapy/trunk/scrapy/item/models.py
index 81dfee924..771d3a9b4 100644
--- a/scrapy/trunk/scrapy/item/models.py
+++ b/scrapy/trunk/scrapy/item/models.py
@@ -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