AttributeError: 'module' object has no attribute 'Spider'

非 Y 不嫁゛ 提交于 2019-12-05 12:15:50

You are using old Scrapy (0.14.4) with the most latest documentation.

Solution: upgrade to the latest version of Scrapy or read old docs, that suit currently installed version

shadi

Use sudo pip install scrapy. If you get Python.h missing error, then install the python header files with sudo apt-get install python-dev (reference)

Maybe try:

from scrapy import Spider

Just importing module isn't enough if you want to use it's classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!