LyricsGenius
LyricsGenius copied to clipboard
Speed issues in search methods
Hi! I get a lot of delay (up to 10 seconds) when I search for an artist, album or a song. Is it normal? I take also the first result in order to be faster, but the time it takes is still a lot.
These are examples of slow calls from my code:
self.genius = lyricsgenius.Genius(token, response_format='html')
# Example 1
searched_artist = self.genius.search_artist(
artist_name=artist_name, max_songs=1, sort='popularity',
per_page=1, get_full_info=False, allow_name_change=True)
# Example 2
searched_album = self.genius.search_album(
artist=artist_name, name=album_name, get_full_info=False)
# Example 3
searched_track = self.genius.search_song(
artist=artist_name, title=track_name, get_full_info=False)
Same problem here.