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