Skip to content

Converts your audio file library into your Spotify library by scraping the metadata of audio files and using it to find the equivalent track on Spotify.

Notifications You must be signed in to change notification settings

EricPickup/Stone-Age-To-Spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stone-Age to Spotify

Converts your audio file library to Spotify by scraping your audio files and their metadata to find the equivalent track on Spotify, which is then added to your Spotify library.

Video

YouTube Video

Why?

After recently switching to Spotify as my main music provider, I realized that there was no efficient way to convert my old music (downloaded audio files) to Spotify.

Sure, you could add them into your local library, but that would only allow you to listen to them on the device that stored the audio sources.

I began searching for each song in my library, one-by-one on Spotify, adding them very slowly. I realized this was very inefficient.

I looked for a way to convert my library and found nothing, so I developed my own way.

Resources

This application uses Spotipy - a lightweight Python library for the Spotify Web API.

The application also uses Mutagen - a Python module used to handle audio metadata.

How it Works

On first run, the application will open a URL to authenticate your Spotify account for the application to access your library.

The application will search for a /Music/ directory in the script's directory. If it does not exist, it will create one.

It will scrape the metadata of each audio file (title, artists). If an audio file does not contain any metadata, it will use the file name as the title.

After scraping the metadata, it will clean that data by trimming any website links and other redundant information for more accurate results.

It will then search Spotify using the title. Spotify will return a list of tracks.

The application will search through the artists of each track, using sequence matching to compare the Spotify song's artists to the local file's artists.

Once a match is found, the application will add the Spotify track to your Spotify library.

About

Converts your audio file library into your Spotify library by scraping the metadata of audio files and using it to find the equivalent track on Spotify.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages