Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Use self.__class__.__name__ instead of showing generic Spider class name

Kiran Koduru2960c9b5683d
diff --git a/scrapy/spiders/__init__.py b/scrapy/spiders/__init__.py
index c6b92f8eb..e9c131e3b 100644
--- a/scrapy/spiders/__init__.py
+++ b/scrapy/spiders/__init__.py
@@ -87,7 +87,7 @@ class Spider(object_ref):
return Request(url, dont_filter=True)
def parse(self, response):
- raise NotImplementedError('Spider.parse callback is not defined')
+ raise NotImplementedError('{}.parse callback is not defined'.format(self.__class__.__name__))
@classmethod
def update_settings(cls, settings):