Scrapy, a fast high-level web crawling & scraping framework for Python.
Add values (if there're any) when initiating items from dicts
Sortafreelbd8a10384b46
diff --git a/scrapy/loader/__init__.py b/scrapy/loader/__init__.pyindex a7c75a46a..295a8e42d 100644--- a/scrapy/loader/__init__.py+++ b/scrapy/loader/__init__.py@@ -35,6 +35,8 @@ class ItemLoader(object):self.parent = parentself._local_item = context['item'] = itemself._local_values = defaultdict(list)+ for field_name, value in item.items():+ self.add_value(field_name, value)@propertydef _values(self):