How to Solve NameError: name 'CrawlSpider' is not defined -- scrapy
Solution: Import the 'CrawlSpider' module
To Solve the error, add the following line to the top of your code.
from scrapy.spiders import CrawlSpider
For more information:
Python scrapy CrawlSpider