Le lundi 3 avril 2017 14:15:41 UTC+1, Zied Boughammoura a écrit :
>
> hello scrapy users!
>
> i'm working with scrapy + mongoDB...
> i need to load images to mongoDB uisng pipelines (i mean full image not 
> saving the path in the OS folder)
> what i have is :
> ****spider***
>
> item['file_urls']=response.xpath('//div[@id="imgTagWrapperId"]/img[@id="landingImage"]/@src').extract()
>
> ******items***
>     file_urls = scrapy.Field()
>     files = scrapy.Field()
>
> ****settings***
> ITEM_PIPELINES = {
>     'scrapy.pipelines.images.FilesPipeline': 1,
>     'full.pipelines.MongoDBPipeline': 300,  
> }
>  
> FILES_STORE = '/home/Desktop/output'
>
> any advice to do this ? 
>

-- 
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