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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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