johnwmillr / LyricsGenius

Download song lyrics and metadata from Genius.com 🎶🎤
http://www.johnwmillr.com/scraping-genius-lyrics/
MIT License
878 stars 159 forks source link

Speed issues in search methods #217

Open FabioRomagnolo opened 3 years ago

FabioRomagnolo commented 3 years ago

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)
derplayer commented 1 year ago

Same problem here.