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

Add replay_continuation parameter #32

Merged
merged 1 commit into from
Jan 14, 2021
Merged

Add replay_continuation parameter #32

merged 1 commit into from
Jan 14, 2021

Conversation

miyuk
Copy link
Contributor

@miyuk miyuk commented Jan 14, 2021

Changes

  • Add pytchat parameter for continuation crawling with last time continuation token
    • If there are parameter, pytchat attempts get chat data with archived mode.
    • Add continuation instance value

How to use

print('\n######## First time ########')
chat = pytchat.create(video_id='uIx8l2xlYVY')
next_continuation = chat.continuation
chat.get() # get first comments
print(f'\n######## Second time ########')
chat = pytchat.create(video_id='uIx8l2xlYVY', replay_continuation=next_continuation )
chat.get() # get continuation comments

Closes #31

@miyuk miyuk changed the base branch from master to develop January 14, 2021 11:23
@taizan-hokuto taizan-hokuto merged commit b9f213f into taizan-hokuto:develop Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] get archived chat data from continuation
2 participants