Skip to main content

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 logo

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 pip

pip3 install syrics

Upgrade with pip

pip3 install syrics --upgrade

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

When you run the program for the first time, it will directly create config and open editing.

To edit config

syrics --config

To reset config to default values

syrics --config reset

To open config in notepad or nano text editors

syrics --config open

After finding sp_dc you should edit config file and set sp_dc to the value you found.

Default values of config

{
    "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_download": false,
    "force_synced": false
}

See wiki for more details about the format tag detailts in config keys.

Usage

Make sure you have set the congig before starting

1. Direct

syrics
Enter link: https://open.spotify.com/track/2eAvDnpXP5W0cVtiI0PUxV

It will ask for the link

2. Passing link as commandline argument

syrics https://open.spotify.com/track/2eAvDnpXP5W0cVtiI0PUxV

changing download folder command

syrics --directory ~/Music/songs/ https://open.spotify.com/track/2eAvDnpXP5W0cVtiI0PUxV

download current playing song on authorized account

syrics --user current-playing

downloading from user playlist

syrics --user playlist

To see available commands

syrics -h

3. Passing Folder path with music files (Experimental)

syrics /home/public_user/Music/songs

Use as a module

from syrics.api import Spotify
sp = Spotify("SP_DC here!")
sp.get_lyrics("28RQx5pH9T9LZXY02IheWc")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syrics-0.0.1.8.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

syrics-0.0.1.8-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file syrics-0.0.1.8.tar.gz.

File metadata

  • Download URL: syrics-0.0.1.8.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for syrics-0.0.1.8.tar.gz
Algorithm Hash digest
SHA256 bbf89c693da330d4be122a741d6db7102446ba711ec6de2bb7020605dc28daeb
MD5 d19dfecc638b12654b6896c7de8d7dd9
BLAKE2b-256 de73cee758c3f7026765174b6e58adb619942ead7eb76882a17f6727d460c339

See more details on using hashes here.

File details

Details for the file syrics-0.0.1.8-py3-none-any.whl.

File metadata

  • Download URL: syrics-0.0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for syrics-0.0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7bf038a7bbadbdc2ad3c180f61886cc9f77fa29a63327c6952c92f170701d0df
MD5 abe42d0e94bce7945a461c8948004055
BLAKE2b-256 6c8424ffea1694a697332aa00626fdbbf71675d3b73d812d000a66bcaf8a92e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page