原文:Scrapy 'module' object has no attribute 'Spider'錯誤

在 Scrapy入門教程 中,在創建的 dmoz spider.py 文件中是通過 的方式導入。但是用這種方法會出現錯誤: class DmozSpider scrapy.Spider :AttributeError: module object has no attribute Spider 需要換一種方式導入 就可以啦 ...

2014-06-14 16:30 1 2340 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM