该照片文件在磁盘Laravel Instagram API上不存在

时间:2019-05-16 00:04:03

标签: php laravel photo

我收到此错误

  

无法获取照片详细信息:磁盘上不存在照片文件“ 1557963184_b_near-east-university-1489.tU9IR.png”。

但是它存在于storage-images文件夹中。请帮助我,我该怎么办?

import json
from scrapy.exporters import JsonItemExporter, CsvItemExporter

class CustomJsonExporter(JsonItemExporter):
    def _beautify_newline(self):
        self.file.write(b'\n')

class PrintItem:
    def process_item(self, item, spider):
        print(dict(item))
        return item

class JsonPipeline:
    def open_spider(self, spider):
        self.file       = open('static/maquinas.json', 'wb')
        self.exporter   = CustomJsonExporter(self.file)
        self.exporter.start_exporting()

    def close_spider(self, spider):
        self.exporter.finish_exporting()
        self.file.close()

    def process_item(self, item, spider):
        self.exporter.export_item(item)
        return item

class CsvPipeline:
    def open_spider(self, spider):
        self.file       = open('static/maquinas.csv', 'wb')
        self.exporter   = CsvItemExporter(self.file)
        self.exporter.fields_to_export = ['storage', 'cpu', 'memory', 'bandwidth', 'price']

    def close_spider(self, spider):
        self.exporter.finish_exporting()
        self.file.close()

    def process_item(self, item, spider):
        self.exporter.export_item(item)
        return item

据我了解,$ location必须是/ Model / Location类的实例 但这是什么意思,我该如何解决该错误?

0 个答案:

没有答案