Answer the question
In order to leave comments, you need to log in
How to download photos from a site using scrapy?
Good day
I have a piece of code from spiders/spider.py:
yield ImgData(image_urls="correct url")
Code in items.py:
import scrapy
class MyItem(scrapy.Item):
image_urls = scrapy.Field()
images = scrapy.Field()
And a piece of code in settings.py:
ITEM_PIPELINES = {
'scrapy.pipelines.images.ImagesPipeline': 1
}
IMAGES_STORE="/home/me/Documents/spider project/spider project/images"
But after running the spider nothing appears in the images folder
Why is this happening?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question