Importing scrapy.conf.settings generates error
Question: Using scrapy version 0.16. Trying to create a standalone spider runnable from
a script as per [this gist](https://gist.github.com/484009). 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?


Answer: You can find the answer to this question in [this new
FAQ](http://doc.scrapy.org/en/latest/faq.html#i-m-getting-an-error-cannot-
import-name-crawler):

Basically, you need to access the crawler differently, using the
`from_crawler` class method instead of importing `crawler` from
`scrapy.project`.

