egbertbouman / youtube-comment-downloader

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

Fix #105 #108

Closed minamotorin closed 2 years ago

minamotorin commented 2 years ago

The cause of #105 is wrong continuation tokens and this PR fixes it.

The token at the

YT_INITIAL_DATA['contents']['twoColumnWatchNextResults']['results']['results']['contents'][-1]['itemSectionRenderer']['contents'][0]['continuationItemRenderer']['continuationEndpoint']['continuationCommand']['token']

should be used, but the current code uses

YT_INITIAL_DATA['engagementPanels'][-1]['engagementPanelSectionListRenderer']['content']['sectionListRenderer']['contents'][0]['itemSectionRenderer']['contents'][0]['continuationItemRenderer']['continuationEndpoint']['continuationCommand']['token']

and fails.

egbertbouman commented 2 years ago

I've checked out your changes and things are working as they should. Thanks!

minamotorin commented 2 years ago

Thanks for your merging!