elmoiv / azapi

Get Lyrics from AZLyrics.com like a Boss ~(0_0)~
GNU General Public License v3.0
121 stars 12 forks source link

getSongs doesn't work with certain artists #2

Closed g-casey closed 4 years ago

g-casey commented 5 years ago

Don't know if this is an issue with azlyrics but when trying to get the songs from someone like Kanye it only works if you search "West". The terms "Kanye West" or "Kanye" throw errors.

elmoiv commented 4 years ago

This is an issue with Azlyrics website. They stored Kanye West as West in their database. The format of the singer url is https://www.azlyrics.com/{First letter}/{Name}.html, so it will be: https://www.azlyrics.com/w/west.html

I am adding soon the search feature which may help in situations like yours.

Sorry for facing this issue.

g-casey commented 4 years ago

Ok sounds good. Other than that the api works really well.

elmoiv commented 4 years ago

Don't know if this is an issue with azlyrics but when trying to get the songs from someone like Kanye it only works if you search "West". The terms "Kanye West" or "Kanye" throw errors.

You can now do this:

from azapi import AZlyrics

api = AZlyrics()

songs = api.getSongs('Kanye', search = True)

print(songs)

Cheers ✌😊