basabuuka_prototyp/venv/lib/python3.5/site-packages/scrapy/project.py
2020-08-16 19:36:44 +02:00

17 lines
463 B
Python

"""
Obsolete module, kept for giving a meaningful error message when trying to
import.
"""
raise ImportError("""scrapy.project usage has become obsolete.
If you want to get the Scrapy crawler from your extension, middleware or
pipeline implement the `from_crawler` class method (or look up for extending
components that have already done it, such as spiders).
For example:
@classmethod
def from_crawler(cls, crawler):
return cls(crawler)""")