I'm trying to get all the videos from a Youtube channel using the Youtube API.
The channel shows as having 125777 videos as seen below.
However, when I try to obtain these videos using the playlist id, I only get 19914 videos.Even when I use that playlist id to check on Youtube I get 19914 videos,even though the total video count is much different.
Below is the code:
p_id = news_channel_data.loc[news_channel_data['channel_name']=='NDTV', 'playlist_id'].iloc[0]def get_video_ids1(youtube, playlist_id):request = youtube.playlistItems().list( part='contentDetails', playlistId = playlist_id)response = request.execute()return responseget_video_ids1(youtube, p_id)Is there something wrong with my code, or is it the case that the playlist for Youtube only has those videos. Is there another way I can obtain all the videos from a channel?
