Another improvement would be to check command line arguments to accept the CSV file and then create an output directory with the name of the playlist to save the files. It will obviously need some fixing to sanitize the song names before sending them to youtube-dl, but it seems to work. $ cp my-spotify-list.csv output/playlist.csv This can then be run in a directory containing your playlist.csv $ mkdir output Youtubedl_cmd = "youtube-dl -x -audio-format mp3 -add-metadata 'ytsearch:%(fullname)s'" \ # download the audio as an mp3 using youtube-dl # create a song name to search for using the artist and song title # skip the first line which contains headings Download and install the TunesFun Spotify Music Converter app. This is how to download MP3 from Spotify using TunesFun. With open('playlist.csv', newline="") as f: Once you install it, you can burn Spotify to something like a CD, create Spotify tune, configure Spotify content as an indicator, and so on. # open up the csv file and read the data into a list A quick python script to do that looks something like #!/usr/bin/env python3 All I needed to do was get the artist and title from the CSV and send them to youtube-dl. I decided the easiest way to do that would be to use youtube-dl since it has a built in youtube search facility. But now I was wondering if I can download a list of songs from a CSV file. I now have a backup of my playlists in case Spotify somehow loses them, however unlikely that is. Then you just need to login to Spotify and choose the playlist you want to export to CSV. When exportify is started it will run listening on localhost:3000 and open up its login page automatically in your browser. It was easy to get it up and running by cloning the repository from github and then installing the dependencies and starting it with yarn. It didn't take long for me to find the Exportify project which can be used to make a backup copy of your Spotify playlists. While I was going for a walk today I randomly started wondering if it was possible to download a Spotify playlist as a text file or CSV file.
0 Comments
Leave a Reply. |