This code allows you to download public playlist data from a public deezer profile and then compare playlists against eachother.
No login required.
Built on the deezer-python api wrapper package.
- Compare one playlist against another playlist
- Compare one playlist against multiple playlists
- Comparing shows you the duplicate songs found in each playlist
Edit main.py as needed!
First: Install the deezer api wrapper package dependency pip install deezer-python
Second: download the playlist data:
import getPlaylistData
getPlaylistData.downloadPlayListData(DEEZER_USER_ID)
Note: the DEEZER_USER_ID can be found by navigating to your deezer profile and copying the id from the url
- Example:
https://www.deezer.com/us/profile/4063572262/playlists- The
DEEZER_USER_IDis4063572262
Note: the only data saved is songID, title, artistName
Third: compare the playlist data
Comparing one file against another
comparePlaylists.findDuplicates("some_playlist", "another_playlist")
Comparing one file against multiple
ignoreFiles = ["mix_tape1", "some_other_mix_tape"]
comparePlaylists.massCompare("songs_I_think_I_have", ignoreFiles)
-
Note:
massCompare()will comparesongs_I_think_I_haveagainst all files in thePlayListDatadirectory that is generated. -
To specify playlist files to ignore, pass a list of the file names
ignoreFiles = ["mix-tape_1", "some_other_mix_tape"]
Example output of running massCompare()
