Convert a Spotify Playlist into its corresponding last.fm scribbles sorted.
Example env file:
LASTFM_KEY=
SPOTIFY_KEY=
SPOTIFY_SECRET=
TOKEN=
USER_ID=
NEW_PLAYLIST_ID=
- Put in your desired username in the lastfmtoinfo.py script.
- Run.
- Run spotify.py and click on the link in the terminal.
- Accept OAuth and then you will be redirected (it will say page not found but that doesn't matter)
- Past that redirect link into the terminal prompt
- It will give you the TOKEN and USER_ID
- Input these into your .env
- Get the Spotify link that you desire to be searched and compared on and put it into spotify_link. There are examples in the file.
- Input the correct csv file with the username into lastfminfocsv variable. It should be
f"lastfminfocsv{username}"
- Run.
You are going to need a playlist ID to populate (createSpotifyPlaylist.py). If you do not have a playlist ID, create a playlist:
- Populate the title and description
- Run
- Put the id that outputs in the terminal into your .env under NEW_PLAYLIST_ID
- Ensure that you have the toConvertToPlaylist.csv file from spotifyplaylist.py and have inputed the NEW_PLAYLIST_ID env variable.
- Run
- Think about better ways to compare strings/compress songs to get better results
- Create a single main and a better flow