Scrapy, a fast high-level web crawling & scraping framework for Python.
Preprocess values if item built from dict.
Sortafreel754f52b02781
diff --git a/scrapy/loader/__init__.py b/scrapy/loader/__init__.pyindex 295a8e42d..7c7f66866 100644--- a/scrapy/loader/__init__.py+++ b/scrapy/loader/__init__.py@@ -35,8 +35,9 @@ class ItemLoader(object):self.parent = parentself._local_item = context['item'] = itemself._local_values = defaultdict(list)+ # Preprocess values if item built from dictfor field_name, value in item.items():- self.add_value(field_name, value)+ self._values[field_name] = self._process_input_value(field_name, value)@propertydef _values(self):