Skip to main content

Fetch lyrics from Genius using your command line

Project description

fetch_lyrics CLI Function

Custom command-line interface, based on the lyricgenius* Genius API implementation. Command line flags can be used to automatically copy the found lyrics to the MacOS* clipboard, and to store the found lyrics as .txt files in a (configurable) directory.


Installation and First Use

pip install lyrics-fetcher

For this software to work, a Genius API token is required. These (free) tokens can be found on the Genius developers website. More information about the Genius API can be found in the Genius API documentation. See the Usage section for information on how to set a token.


Usage

Fetching Lyrics

fetch_lyrics -[pc] "Queen" "Bohemian Rhapsody"

the -p flag enables saving of lyrics to a .txt file. By default, this is the current directory from which the command is run. To change the output directory, see the changing settings section.

the -c flag enables copying of the found lyrics to the MacOS* clipboard. This could be useful for manually adding lyrics to ID3 tags.

--settings, --help and --version can also be called for their basic functionality.

Changing Settings

before the first use, the token should be set. This token will be locally stored (unencrypted). To set the token, use the following command:

fetch_lyrics set token "TOKEN"

where TOKEN is replaced with the token obtained from the Genius developers webpage.

A custom output directory for the output of found lyrics into .txt files can be set using:

fetch_lyrics set outdir "desired/output/directory"

Settings are locally stored in .settings files. Note that these are unencrypted, but are never shared or moved.


Use Policy

This software is licensed using GNU GPLv3.


Disclaimer and Notes

*) Note that compatibility of different dependencies and OS' is not (yet) investigated.

  • I am open to improvements/pull requests, but may not have much time to look into them.

  • Currently only supports UTF-8 character encoding.

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

lyrics-fetcher-0.2.2.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

lyrics_fetcher-0.2.2-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file lyrics-fetcher-0.2.2.tar.gz.

File metadata

  • Download URL: lyrics-fetcher-0.2.2.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lyrics-fetcher-0.2.2.tar.gz
Algorithm Hash digest
SHA256 97efe09a593a595cafacb4592cd3522a55698e603a11daa2789f79c21c690293
MD5 04e6b92ed93d41aab67a01782ecc66ab
BLAKE2b-256 35303604ec75016aa863f0a8e575a8a2ae2e953dab3ae5ff86fd4af468f63caa

See more details on using hashes here.

File details

Details for the file lyrics_fetcher-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: lyrics_fetcher-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

File hashes

Hashes for lyrics_fetcher-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 521e4a3ac174d4f3aba91d7e6557eb5f44a88bd40c5151ee6f3d00d90b61e11c
MD5 784c3b0718fa53224f26fd4e84bcfa55
BLAKE2b-256 b734a2f110bbcf0fea235e9a6f04ed2e38b59087824151de95a9a4076ecf239a

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