You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
463 B

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