GithubHelp home page GithubHelp logo

tappyduckmancodes / spotify-lyric-downloader Goto Github PK

View Code? Open in Web Editor NEW
35.0 2.0 1.0 839 KB

Rips lyrics from currently playing song on Spotify and puts into folder based on Artist and Album.

License: GNU General Public License v3.0

Python 100.00%
music lyrics lyrics-scraping spotify-api spotipy spotify

spotify-lyric-downloader's Introduction

spotify-lyric-downloader

Rips lyrics from currently playing song on Spotify, converts to LRC format for offline playback (e.g Plex, Kodi, MusicBee)

Disclaimer!!! (Read before use, thanks)

This software is totally open source code permanently 100%, which is only used for study and conmunication. Any forms of commercial using is not allowed. Please be responsible with this software and don't use it for any purposes aside from a personal media collection.

Requisites:

pip install spotipy requests bs4 pyautogui pyperclip datetime importlib

Forgive my carelessness please if there are some modules I forgot to mention, just install it by yourself.

How to set up:

· Go to the Spotify API Dashboard

· Create an app and enter "http://example.com/example" as the Redirect URI in the settings

· Copy the Client ID and Secret from Spotify API Dashboard and put them into lyricdownloader.py

· Sign into Spotify and listen to any song you like.

· Open your browser and open the developer tool (Hot key is F12 in Chrome), and go to https://open.spotify.com/lyrics, find the authorization value following the picture below. Then close the browser. Remember, once you get the authorization, don't open https://open.spotify.com/lyrics in a new web, or it will generate a new one and the old one will be expired. As long as you don't open a new web, this can maintain a long time (roughly 1-2hrs from testing). Just use client or the web you first opened to listen to music. Image load fail

· Run converter.py in a cmd or git-bash terminal.

· It will redirect you to a link based off your URI, copy everything but http://example.com/example from the url and paste it into the console. Then you can close the browser.


How to use:

· Listen to a song on Spotify (any client works).

· run converter.py in Windows cmd or Mac terminal.

· Wait about 10 seconds.

· Once complete, check "Lyrics" folder for grouping by artist, album, and track number and title. Enjoy yourself!

spotify-lyric-downloader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

doublefire-chen

spotify-lyric-downloader's Issues

It doesn't compatible with Mac

At first, please let me thank you for your excellent project!
However, it didn't compatible with Mac. I have edited it for temporary use on Mac.
There are two reasons:

  1. different file paths syntax in Win and Mac. eg: Win: C:\Users\Doublefire_Chen\lyric.txt Mac: /Users/Doublefire_Chen/lyric.txt
  2. different hot key in Win and Mac. eg: Win: Ctrl+C, Ctrl+V Mac:Command+C, Command+V

By the way, there is no need to use module webbrowser to open the lyrics_url, using module requests maybe more efficient. And not using hotkey, just use program to get the txt from the url will also be helpful to the efficiency.
At last, don't worry. I already have solution to handle all problems mentioned above. I will help you to make this project more perfect and nice when I finished my mid-term exam. Damn it, I have to review my notes preparing for the mid-term exam right now. Bye~!
Good luck!

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.