Created
April 15, 2021 03:46
-
-
Save Redbyte1/1e88e0bfbe97584792b7fbb89207b5fe to your computer and use it in GitHub Desktop.
Use ytmusicapi to convert Thumbs Up/Liked Songs into seperate public playlist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.