def run(self, bots, wait_seconds=None):
"""
Setup the bots and seconds to wait and spawn the required gevent
:param bots: [Crawler]
:param wait_seconds: seconds for checking the urls
"""
self.wait_seconds, self.bots = wait_seconds, bots
pool = Pool()
pool.spawn(self.posts_fetcher)
pool.spawn(self.telegram_posts_sender)
pool.join()
telegram_writer.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录