A command line tool to fetch lyrics from spotify and save it to lrc file. It can fetch both synced and unsynced lyrics from spotify.
Project description
Syrics
A command line tool to fetch lyrics from spotify and save it to lrc file. It can fetch both synced and unsynced lyrics from spotify. You can find API version at akashrchandran/spotify-lyrics-api.
Getting started
You will need a spotify account, free also works
Install with git clone
git clone https://github.com/akashrchandran/syrics
cd syrics
pip install -r requirements.txt
Change sample_config.json to config.json
On Linux or Mac
mv sample_config.json config.json
On Windows
ren sample_config.json config.json
To get more detailed installation guide please check wiki's installation page
Finding sp_dc
Syrics sp_dc cookie to authenticate against Spotify in order to have access to the required services.
The methods are explained in the wiki.
Config File
You may have noticed a config.json in the code directory. After finding sp_dc you should edit config file and set sp_dc to the value you found.
{
"sp_dc": "",
"download_path": "downloads",
"create_folder": true,
"album_folder_name": "{name} - {artists}",
"play_folder_name": "{name} - {owner}",
"file_name": "{track_number}. {name}",
"synced_lyrics": true,
"force_synced": true,
"embed_lyrics": false
}
See wiki for more details about the tags. (Still in development)
Usage
Make sure you have set the congig before starting
1. Direct
python3 syrics.py
Enter link: https://open.spotify.com/track/2eAvDnpXP5W0cVtiI0PUxV
It will ask for the link
2. Passing link as commandline argument
python3 syrics.py https://open.spotify.com/track/2eAvDnpXP5W0cVtiI0PUxV
changing download folder command
python3 syrics.py --directory ~/Music/songs/ https://open.spotify.com/track/2eAvDnpXP5W0cVtiI0PUxV
download current playing song on authorized account
python3 syrics.py --user current-playing
downloading from user playlist
python3 syrics.py --user playlist
To see available commands
python3 syrics.py -h
3. Passing Folder path with music files (Experimental)
pythpn3 syrics.py /home/public_user/Music/songs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.