我一直在尝试使用Scrapy,并尝试使用这个scraper for football data-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造成的?
目前没有回答
相关问题 更多 >
编程相关推荐