Using Python 3, I was able to get a playlist and get an individual video, but I want to get the mix playlist of each user (public mix), since every user see different mixes.
Should I authenticate users using google auth and then grab the mix like I grab a normal playlist? If so, how to send the auth token with Youtube's API request? I couldn't find anything related to the mix in the docs.
Do mixes have a unique URL that I could use to grab them without authentication?
I'm currently using Pafy, it's a wrapper for Youtube's API, but neither that library nor the official API has a way to get the info off Youtube's mix, my code is below
def get_youtube_playlist(url):
playlist = pafy.get_playlist(url)
for item in playlist['items']:
return item['pafy'].title
That works with playlists, not mixes.