Quick tool to sync Spotify liked songs to local MP3s and generate playlists.
Mainly used in combination with a matcha and feminist literature.
Install dependencies:
pip install spotipy yt-dlpSet up Spotify API credentials in the code (yeah I know, should be env vars).
# Generate playlist and song list from Spotify
py sync.py -p
# Check what songs are missing locally
py sync.py -m
# Download missing songs
py sync.py -d
# Process everything (default)
py sync.py- Add track duration to
#EXTINFentries (currently just using -1) - Include artist/title parsing for better
#EXTINFformat - Add
#PLAYLIST:header with playlist name - Maybe add album info with
#EXTALB:and#EXTART: - Consider file size info with
#EXTBYT:
- Better error handling for network issues
- Progress bars for downloads
- Config file for output directories
- Metadata tagging for downloaded MP3s
- Add more information to .m3u
mp3/- Downloaded songs go hereSpotify_Liked_Songs.m3u- Playlist file (in mp3 folder)Spotify_Liked_Songs_List.txt- Song list for comparisonMissing_Songs.txt- Songs that the script might have missed that still need to be downloaded