1👍
✅
The scrapy documentation is well written and contains a lot of example code. If you’re working on your first scrapy project, then it would be worthwhile having a browse there. 🙂
For example, a quick scan of the logging documentation turns up the following sample code:
from scrapy import log
log.msg("This is a warning", level=log.WARNING)
So adding the import and removing the return
should fix your code
Also, should the mesg line use self.name
?
mesg = "Spider {} is not working".format(self.name)
Source:stackexchange.com