Skip to content

Instantly share code, notes, and snippets.

@Redbyte1
Created April 15, 2021 03:46
Show Gist options
  • Save Redbyte1/1e88e0bfbe97584792b7fbb89207b5fe to your computer and use it in GitHub Desktop.
Save Redbyte1/1e88e0bfbe97584792b7fbb89207b5fe to your computer and use it in GitHub Desktop.
Use ytmusicapi to convert Thumbs Up/Liked Songs into seperate public playlist
from ytmusicapi import YTMusic
ytmusic = YTMusic('headers_auth.json')
liked = ytmusic.get_liked_songs(500)
likedIDs = []
for song in liked['tracks']:
likedIDs.append(song["videoId"])
ytmusic.create_playlist("Liked Songs", "Liked Song playlist duplicate", "PUBLIC", likedIDs, "")
@DeamonDan
Copy link

the only working one. thank you very much brother.
https://gist.github.com/senecaso/784e740f343f12ccc0b4a896f59a5f03#file-copylikes-md
this one does the same thing but shuffles the songs.
yours did exactly what I wanted. and that makes a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment