The initial data contains an estimated count as a text. This PR adds a method for fetching and interpreting this count, allowing e.g. the use of tqdm for monitoring progress.
As an example of the intended use, consider this for a given youtube id:
d = YoutubeCommentDownloader()
total = d.get_count(id)
comments = d.get_comments(id)
for c in tqdm(comments, total=total):
pass
The initial data contains an estimated count as a text. This PR adds a method for fetching and interpreting this count, allowing e.g. the use of tqdm for monitoring progress.
As an example of the intended use, consider this for a given youtube id:
d = YoutubeCommentDownloader() total = d.get_count(id) comments = d.get_comments(id) for c in tqdm(comments, total=total): pass