r/programmingrequests • u/asjkl_lkjsa • Jun 03 '22
I need a code that would take my "Liked Videos" from Youtube and feed it into an Excel sheet or Database.
I have 5k Liked Videos on youtube. I need a code that would take attributes of a Video :
Title, Link, Thumbnail (if possible), and Audio would be a dream.
and feed it into some form of storage like a MySQL database or an excel sheet.
6
Upvotes
2
u/limeforadime Jun 04 '22
What do you mean by audio exactly?
1
u/[deleted] Jun 04 '22
It shouldn’t be too difficult to get all your 5000 video links but to get the music you would probably encounter captchas every 20 or 30 videos. I’ve never tried to download so many videos using python but I’ve got a script to download playlists and or videos with time stamps as separate tracks .
2
u/tanujmalkani Jun 04 '22
Look at https://developers.google.com/youtube/v3/docs/videos/list
Set myrating to like and code a loop to parse through the pagetokens (if you need more than 50 results)