Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chartlyrics

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chartlyrics

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

  • 0.1.7
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc