egbertbouman / youtube-comment-downloader

Simple script for downloading Youtube comments without using the Youtube API
MIT License
881 stars 223 forks source link

fetch count of comments #133

Closed peter-sk closed 6 months ago

peter-sk commented 8 months ago

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

github-actions[bot] commented 6 months ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 6 months ago

This PR was closed because it has been stalled for 7 days with no activity.