Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

TSVArchiver

taizan-hokuto edited this page Jan 11, 2021 · 2 revisions
  • 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()
Clone this wiki locally