A tool to load the liked songs in Spotify, scrape the lyrics and add the ability to search through all of them.
You're a Spotify user, you have a lot of songs in your playlist, you remembered multiple words or a sentence in one of the songs in your playlist, you tried to google it and you weren't able to find the song. This tool should solve your problem because it will load all of your lyrics and allow you to search in all of it in an easy and reliable way.
Screen.Recording.2023-08-11.at.9.52.15.PM.mov
Consider checking example folder.
Expected values to be set as Environment Variables or in a YAML file in the Documents folder.
LYRICS_INDEX_NAME:
SPOTIFY_ID:
SPOTIFY_SECRET:
GENIUS_TOKEN:
GENIUS_BASE_URL:
MUSIXMATCH_TOKEN:
LYRICS_PROVIDER: genius|musixmatch
ctx := context.Background()
// Initialize Instance of Lyricsify
svc, err := lyricsify.New(ctx, authServer.SpotifyClient())
// Load all of your songs in Liked Songs section, the key is the song name and the value is the artist/s
songsMap, err := lyricsify.LoadSongs(ctx)
// ......
// To get song lyrics as a text
lyrics, err := lyricsify.FetchLyrics(ctx, song, artists)
// Save Lyrics in the datastore
err := lyricsify.SaveLyrics(ctx, song, lyrics)
Elasticsearch is required to run the tool, docker compose is ready to be used.
make d-up
make d-down