Hi everybody,

I had a spider that used to work nicely but to get a code cleaner I want to 
use an ItemLoader to populate my item. My item is pretty simple:

class ProductItem(scrapy.Item): 
    title = scrapy.Field()
    ean = scrapy.Field() 
    images = scrapy.Field()
    image_urls = scrapy.Field()

Which are populated through the ProductLoader as following:

class ProductLoader(ItemLoader):


default_output_processor = TakeFirst()
title_in = MapCompose()
title_out = StripString()
ean_in = MapCompose()
ean_out = MapCompose(ean_or_none)



My problem come as soon as I try to load images which are returned as 
following from the xpath resolver:

['/asset/36/88/image1-XL.jpg', '/asset/36/88/image2-XL.jpg']


If I use the Itemloader to populate 'image_urls', it doesn't use the image 
pipeline, so doesn't download images nor populate the 'images' attribute as 
it used to be without using the ProductLoader.

Is it possible to invoke the image pipeline through the Item loader?

-- 
You received this message because you are subscribed to the Google Groups 
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scrapy-users+unsubscr...@googlegroups.com.
To post to this group, send email to scrapy-users@googlegroups.com.
Visit this group at https://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to