import pytchat import time chat = pytchat.create(video_id="uIx8l2xlYVY") while chat.is_alive(): print(chat.get().json()) time.sleep(5)