Is there a way to trigger a method in a Spider class just before it terminates?
I can terminate the spider myself, like this:
class MySpider(CrawlS
Just to update, you can just call closed function like this:
class MySpider(CrawlSpider): def closed(self, reason): do-something()