Giter Club home page Giter Club logo

pylyrics's Introduction

pylyrics

Python script that detects the song Spotify is currently playing and retrieves its lyrics. Song needs to be playing for the script to detect it. Paused songs are not detected.

Clears the console screen before displaying the lyrics.

Installation

git clone https://github.com/antoniouaa/pylyrics
cd pylyrics
python -m pip install -r requirements.txt

To run

python pylyrics.py

Errors

The script fetches lyrics from Google's search results. If even Google doesn't carry the lyrics, and God help us if they don't, you'll see this error message:

"Song does not have lyrics available"

If nothing is playing while the script is running, the following error message will be shown:

"No song playing"

If you spot a song whose lyrics are actually up in the site but get an error message, please raise an issue.

Why

The only reason this script exists is because Spotify had a built-in function that fetched you the lyrics for any song you were listening to, via MusixMatch.

I liked it. They got rid of it.

Now here we are wrestling with Python all because I wanna know what the hell mumblerappers sing about.

pylyrics's People

Contributors

antoniouaa avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pylyrics's Issues

Dash(-) in song title or artist

Due to the website used in the GET request for the lyrics and their complete lack of consistency in naming their html pages using dashes, having dashes in the title of the song or artist trips the script up and fetches no lyrics.

Returns "No song found", which is suboptimal to be frank.

Guess we won't be reading Playboi Carti's lyrics.
bad_bad_website

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.