Copy your liked youtube music to a playlist
Copy your liked YouTube Music to a playlist
Tested with Python>=3.8 and >=3.9
Run git clone https://github.com/sayok88/likedmusicyoutube.git
Google Cloud Configuration
After created the project, on the project dashboard create your YouTube credentials
Download the JSON file (client_secret.json
or similiar) in the same folder as the code
Enable YouTube Data API v3 on your Google Cloud project : https://console.developers.google.com/
Open config.ini
and edit it for your needs
CLIENT_SECRET_FILE
is the name of the JSON file you downloaded from step 2DEST_PLAYLIST
is the playlist the script will put your liked songsRun pip3 install -r requirements.txt
Lastly, run python3 main.py
to make the transfer process (with ~200 songs limit)
Or run python3 export-txt.py
to just export a txt file with links of your liked YouTube Music, then check playlist.txt
with the results
The YouTube-API has a request-limit, so it workes for “only” ~200 Songs per day
The export process of the txt file is not impacted by the YouTube API request limit
Use venv or not
By default source playlist is Youtube Music Liked playlist
If you need to change that then replace source_play_list default value being LM