def dm_teardown(self):
""" Disconnect the method from the signal.
It's done to avoid conflicts when many instances of the mixin are being executed.
"""
try:
dispatcher.disconnect(
self.dequeue_next_page_requests,
signal=signals.spider_idle
)
except DispatcherKeyError:
pass
评论列表
文章目录