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:
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.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for chartlyrics-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225e3bd8fa700a48c5997bd063895d276728ffbc188f57f0640b8b7f7602bcda |
|
MD5 | 44fdb9d6b99d8c177a3a456593d3c6fe |
|
BLAKE2b-256 | c62451ec911f22daeedc2af9ba174a2bffca7b9ea2bf4d21a98279981530d038 |