问题描述:
scrapy 爬取图片,数据没有下载下来,出现如下错误日志
2021-01-29 09:06:54 [scrapy.pipelines.files] WARNING: File (code: 301): Error downloading file from <GET http://scpic.chinaz.net/Files/pic/pic9/202101/apic30448_s.jpg> referred in <None>
问题解决
在settings文件中 设置 MEDIA_ALLOW_REDIRECTS =True 问题完美解决!!