Driver.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:detective 作者: tijme 项目源码 文件源码
def __signal_handler(self, signum, frame):
        """On sigint (e.g. CTRL+C) stop the crawler.

        Args:
            signum (int): The signal number.
            frame (obj): The current stack frame.

        """

        if self.stopping:
            return

        self.stopping = True

        colorlog.getLogger().warning("Received SIGINT, stopping the crawling threads safely. This could take up to 15 seconds (the thread timeout).")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号