-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callback function on new API #53
Comments
Hi there! The new version now uses generators to manage chat objects :) This makes it a lot easier to define better/more complex callback options. As an example: from chat_replay_downloader import ChatDownloader
video_id = 'J2umj9SgdFU'
chat = ChatDownloader().get_chat(video_id) # creates a generator
for message in chat: # you can now iterate over it!
print(message) # callback goes here would continue outputting:
I will be adding a lot of documentation soon! I just had to release this relatively unpolished version because of YouTube API endpoint changes. |
Ohhhh it's now a generator, that's really great! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the latest commit in master branch.
Before this update, I used to do:
But now I don't see a callback parameter provided, is there any fix? Thanks!
The text was updated successfully, but these errors were encountered: