Skip to main content

Search for lyric

Project description

search-lyrics

Install

pip install search-lyrics

Usage

from cmd-line

  1. help
$ search-lyrics --help
usage: Search for song containing lyrics [-h] [--artist artist] [--text text] [--genius-access-token genius_access_token] [--verbose]
                                         [--version]

options:
  -h, --help            show this help message and exit
  --artist artist       Artist to search text into
  --text text           text to search
  --genius-access-token genius_access_token
                        access token to use for genius api (by default, search for GENIUS_ACCESS_TOKEN in ENV variables)
  --verbose             Enable verbose output
  --version             Show version and exit
  1. search Neoni song containing "heaven can't help me now"
$ search-lyrics --artist "Neoni" --text "heaven can't help me now" --genius-access-token "PUT HERE YOUR GENIUS ACCESS TOKEN"
SANCTUARY

from python

from search_lyrics import search_lyrics
songs = search_lyrics("Neoni", "heaven can't help me now", "PUT HERE YOUR GENIUS ACCESS TOKEN")
for song in songs:
    print(song.title)

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

search-lyrics-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

search_lyrics-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file search-lyrics-0.0.2.tar.gz.

File metadata

  • Download URL: search-lyrics-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.3.4 CPython/3.11.1

File hashes

Hashes for search-lyrics-0.0.2.tar.gz
Algorithm Hash digest
SHA256 28a94d397a53e45d7ce23a330f5617e4b76cdf2aed2dd8ada292f1da4846ba30
MD5 e01456958a94c395c767c357bfe3e15c
BLAKE2b-256 154b1deeccc023b85216d210c61629ed2a76364a5e6c3dd3b490c502a2fb89f9

See more details on using hashes here.

File details

Details for the file search_lyrics-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for search_lyrics-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 25922170f8f80c80ef2c525a7c93283face028cf79180a73de148b37470aaea5
MD5 e2fedae59d35de55ccd416b2089c923e
BLAKE2b-256 c32d8ebb586980ed37ed0555643ac1bd4625f224ba007daa836bec819e9a0834

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