How the fuck do I get video duration of videos in a youtube playlist using its api. https://developers.google.com/youtube/v3/docs/playlistItems says it has been depreciated, what do they use now?
>>12258 post what you have tried so far and in which language are you trying to implement it in, very easy to do it with a one line bash script
>>12258 It does not seem related to what I think you are wanting to do. It seems that property is the time when playlist owners wants the video to start. Instead store the video id and use it to get its duration.
>>12259 Python I did it, but its not the best solution I am trying to create a .csv file with titles of all videos uploaded on doordarshan youtube and their respective durations. The problem is that it has 16k videos in total. I already have extracted all titles. To get the duration I take out the video_id from playlist items and use the code given here https://stackoverflow.com/questions/33698776/how-can-i-get-the-duration-of-youtube-video-with-python And run for every video in the playlist But this is quite slow and I wonder if there is a faster method.
>>12265 Another thing is youtube api has a daily quota of points. You can olny make certain amount of requests per day and I am pretty sure, it wont work for 16k videos. Or I have to do it in batches.
>>12259 >very easy to do it with a one line bash script Using youtubedl? Yeah that is what I am going to do next.
>>12266 16k videos is too much man, your best bet would be using youtube-dl and preforming this task on some VPS for maximum efficiency
>>12269 I doubt it, scraping video titles happened surprisingly quickly. Scrapinh video durations shouldnt take much time, if programmed efficiently. I'll use some other approach tomorrow.
>>12264 Update: Using this, it is very fast now on test run for a smaller channel with 17 videos, i got nearly 2.7 seconds for the whole execution.