acs / spoting

Playing with Spotify API
GNU General Public License v3.0
4 stars 1 forks source link

Lyrics Viewer #5

Closed acs closed 6 years ago

acs commented 6 years ago

In this use case we should find howto find the lyrics for a playlist and then think in ways to use them.

https://github.com/acs/spoting/blob/master/doc/use_cases.md#lyrics-viewer

We should use: https://docs.genius.com/

This project already does it: https://github.com/ribeirojpn/follou

and this is how tit get the lyrics:

https://github.com/ribeirojpn/follou/blob/dev/server/src/lib/getLyrics.js#L16

acs commented 6 years ago

The license for user contents in genius.com:

License to User Content: When you post User Content to the Service or otherwise submit it to us, you hereby grant, and you represent and warrant that you have the right to grant, to Genius an irrevocable, perpetual, non-exclusive, transferable, fully paid, worldwide license (with the right to sublicense through multiple tiers) to use, reproduce, publicly perform, publicly display, modify, translate, excerpt (in whole or in part), create derivative works of, distribute and otherwise fully exploit all Intellectual Property Rights in and to such User Content for purposes of providing, operating and promoting the Service or otherwise conducting the business of Genius. Subject to the rights granted to us in these Terms, you retain full ownership of your User Content; provided, however, that Genius owns all right and title in and to the collective content of the Service, including without limitation to the extent your User Content forms a part of any work of authorship presented or displayed on the Service.

So your contents can be used by Genius in anyway that helps its business. Not sure if it is a fair deal for the contents provider.

acs commented 6 years ago

Other services (Spotify uses Genius):

https://developer.musixmatch.com/: https://developer.musixmatch.com/plans Not a real alternative if you are not doing business.

https://en.wikipedia.org/wiki/LyricWiki: Currently it does not offer an API due to license issues.

https://www.azlyrics.com/ does not have an API REST.

Some more API for getting lyrics: https://www.programmableweb.com/category/lyrics/api

But is seems that Genius is the way to go for this use case.

acs commented 6 years ago

Getting lyrics from Genius with Python http://www.johnwmillr.com/scraping-genius-lyrics/

acs commented 6 years ago

This developer is doing lyrics anylisys for country music. Pretty cool. It has created also a Genius Python API for getting the lyrics. The main issue is that scrapping the lyrics from Genius HTML page probably it is not legal.

acs commented 6 years ago

Pretty interesting this article about why lyrics are not in the API and specially this comment:

The reason they can’t give out lyrics freely is because they now have to pay licensing royalties on them. Most likely, they pay every time someone views a lyric. On a web page, this can be paid for with ads, but their API would need a paid tier in order to provide lyrics (which would be a nice option).

But if you use the embed option, there are not ads at all.

Rap Genius Website Agrees to License With Music Publishers

acs commented 6 years ago

So in a first iteration we can just scrap the lyrics. Spoting is just a playground yet, so it is not so relevant.

For commercial use there are issues in all cases. According to the TOS

The Service is for your personal use and may not be used for direct commercial endeavors without the express written consent of Genius.

acs commented 6 years ago

Blog post about the current status: https://wordpress.com/post/acsbitergia.wordpress.com/35

Next step is to create the web app!

acs commented 6 years ago

web app created and blog post about it published. Closing this ticket.

https://acsbitergia.wordpress.com/2018/04/04/xpolyrics-working/