Scrapy AttributeError:'XmlExportPipeline'对象没有属性'exporter'

时间:2017-08-26 12:04:27

标签: python scrapy anaconda scrapy-spider

我一直在尝试使用Scrapy并尝试使用此刮刀获取有关足球数据的更多信息 - https://github.com/hugomathien/football-data-collection

现在一切正常,除了导出数据

我一直收到这个错误。

ERROR: Error caught on signal handler: <bound method XmlExportPipeline.spider_closed of <footballData.pipelines.XmlExportPipeline object at 0x1031c0ac8>>
Traceback (most recent call last):
  File "/anaconda/lib/python3.6/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "/anaconda/lib/python3.6/site-packages/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/Users/footballData/footballData/pipelines.py", line 43, in spider_closed
    self.exporter.finish_exporting()
AttributeError: 'XmlExportPipeline' object has no attribute 'exporter'

我不会复制完整代码以节省空间 - 可在此处查看 - https://github.com/hugomathien/football-data-collection/blob/master/footballData/footballData/pipelines.py

到目前为止,我无法找到确切的错误,但可能是由于扭曲模块还是 pydispatch?

0 个答案:

没有答案