TSVArchiver - taizan-hokuto/pytchat GitHub Wiki
- archives chat data as tab separated values file.
parameter
- save_path : str
path for save file.
sample code
- archive live chat data
import time
from pytchat import TSVArchiver, LiveChat
video_id = "**********"
async def main():
livechat = LiveChat(video_id, processor=TSVArchiver("v:/test.txt"))
while livechat.is_alive():
livechat.get()
time.sleep(1)
main()