Skip to main content

Wrapper for chartlyrics api: http://api.chartlyrics.com

Project description

CircleCI Build Status Pypi Chat with me on irc

ChartLyrics API

This is a simple wrapper for: http://api.chartlyrics.com. You can search for songs, artists and get the lyrics.

Installation

pip install chartlyrics

Usage Example

from chartlyrics import ChartLyricsClient

client = ChartLyricsClient()

for song in client.search_text("starts with one"):
    if "park" in song.artist.lower():
      print(song.artist)  # Linking Park
      print(song.lyrics)  # Starts with one\n One thing I dont know why...

You can also use song.lyrics_object which will return a Lyrics object that you can index strophes and verses on:

lyrics = song.lyrics_object
print(lyrics[0][-1])  # first strophe last verse

Check the tests for more examples.

Development

Fork the repo, run:

poetry install

Add features, write tests, run:

poetry run pytest

Create a Pull request.

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

chartlyrics-0.1.5.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

chartlyrics-0.1.5-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