Using scrapy version 0.16. Trying to create a standalone spider runnable from a script as per this gist. Importing the above generates this:
Traceback (most recent call last):
File "./spiderctl.py", line 8, in <module>
from scrapy.conf import settings
File "/usr/local/lib/python2.6/dist-packages/scrapy/conf.py", line 4, in <module>
from scrapy.project import crawler
ImportError: cannot import name crawler
The file conf.py contains the line:
from scrapy.project import crawler
But the file scrapy.project is only a comment that the module is deprecated and users should instead implement the from_crawler class method. How do I implement this in the context of the code above?