Wrapper for chartlyrics api: http://api.chartlyrics.com
Project description
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.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for chartlyrics-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42096ceb613a680b9a4cd6dc4bd42e84f2d81d7dbcf4cebbeb796d3ee13871b7 |
|
MD5 | 4a282abb645f007b7e86fd3d30de4561 |
|
BLAKE2b-256 | 3e2a04a321217e11b1e558eb4173cc878df02f6491a71b0b45af128e4fe0cdb0 |