def handle(self, *args, **options):
loop = uvloop.new_event_loop()
asyncio.set_event_loop(loop)
tweets_to_db(loop=loop)
tweets_by_tag_to_db(loop=loop)
clean_tweet_hashtags(loop=loop)
loop.close()
self.stdout.write(self.style.SUCCESS('Successfully done parsing jobs'))
评论列表
文章目录