if spider_finished_count.count == NUMBER_OF_SPIDERS:
    reactor.stop()
return inc_count
spider_finished = spider_finished_count()
How to stop the reactor while several scrapy spiders are running in the same process