Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Inconsistent lyric availability #2

Open
nutritiousreject opened this issue Sep 30, 2016 · 14 comments
Open

Inconsistent lyric availability #2

nutritiousreject opened this issue Sep 30, 2016 · 14 comments

Comments

@nutritiousreject
Copy link

nutritiousreject commented Sep 30, 2016

I tried like 15 songs and nothing happened.

I noticed you were using vagalume as your lyric providing service. I'll look into adding multiple lyric serving sites later on tonight.

the ability to add lyrics to a song for others from inside the app wouldn't be a bad idea either

@nutritiousreject nutritiousreject changed the title Lyrics do not work on linux Inconsistent lyric availability Sep 30, 2016
@Pitasi
Copy link
Owner

Pitasi commented Sep 30, 2016

Hi there! Lyrics are actually fetched from a brazilian website: http://vagalume.com.br.
Probably just they don't have your songs in their database.

@nutritiousreject
Copy link
Author

Yeah that's what i figured. I know rapgenius forsure has a public API,pretty sure a few other services do. I need to do some more research to find as many as I can to try and close that gap

I'll probably add the functionality myself to scan multiple services until the song is found.

@Pitasi
Copy link
Owner

Pitasi commented Sep 30, 2016

If you find some good and free service, I'll add them to my project!
Anyway, PRs are welcome, of course ;)

@nutritiousreject
Copy link
Author

http://genius.com/developers

http://api.lololyrics.com/

http://www.cajunlyrics.com/?page=api
_
I know spotify was using https://www.musixmatch.com/ but they ditched it for whatever reason.
They seem to have a public API also , but im sure they're not 100% free
.
http://lyrics.wikia.com/wiki/Lyrics_Wiki

I also noted that you can use the wikia API to access lyrics from. I couldn't find any good documentation on that, but it's a defiant possibility

@Pitasi
Copy link
Owner

Pitasi commented Sep 30, 2016

I'm checking these sites.

  • genius.com doesn't provide lyrics in the API
  • lololyrics has mostly electronic music, and provide only a small part of the lyrics
  • cajunlyrics.com has only some unknown (to me) artists

Musixmatch actually provides a beta access (with limited access) for their API, they will become paid soon or later

Mmm, using lyrics.wikia.com may be an option, but not a 100% legit and legal one, for sure :/

@nutritiousreject
Copy link
Author

http://lyrics.wikia.com/api.php?artist=Cake&song=Dime&fmt=realjson

Parameters:
  artist              - Artist's name
  song                - Song name
  albumName           - Album name
  albumYear           - Four-digit album year
  fmt                 - Response format
  func                - Query type
  limit               - Max number of items to return (eg: in getTopSongs)
Example:
  api.php?action=lyrics&artist=Joe%20Bonamassa&song=So%20Many%20Roads&fmt=xml&func=getSong

It seems to allow public API requests of songs

@Pitasi
Copy link
Owner

Pitasi commented Sep 30, 2016

@nutritiousreject
Copy link
Author

@nutritiousreject
Copy link
Author

I didn't actually test the api to see if it's down though. If that's the case, I might look into doing some wget magic and just avoiding the law all together

@nutritiousreject
Copy link
Author

api is definantly active, however they seem to not give the entire lyrics to the song.

http://lyrics.wikia.com/api.php?action=lyrics&artist=Kanye%20West&song=On%20Sight&fmt=xml&func=getSong

@nutritiousreject
Copy link
Author

I wonder it'd be possible to use the API to get the url of the song and just parse the html element out. Doesn't seem impossible expecially since it's all contained neatly in a div with a class

@Pitasi
Copy link
Owner

Pitasi commented Sep 30, 2016

Yes, you just defined a scraper :D
I found some packages on npm, but I didn't try to see if their database is really that larger than vagalume's.

@nutritiousreject
Copy link
Author

http://lyrics.wikia.com/wiki/Special:Statistics

They have listed 1,852,928 songs apparently.

So like probably. It'd make community support of adding custom lyrics pretty easy too

@nutritiousreject
Copy link
Author

If scraping doesn't work, theres also the possibility of just displaying the DIV with the lyrics in an iframe too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants