johnwmillr / LyricsGenius

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

Bug fix/118 return precise requested name #123

Closed danielcliu closed 4 years ago

danielcliu commented 4 years ago

_get_item_from_search_response() will now search through all of returned "hits" to find the matching string for the requested song title/artist name. If no matching string is found, the top Genius result of the correct type_ will be returned, and if the genius API returns nothing then None will be returned.

danielcliu commented 4 years ago

@johnwmillr Has this been approved? All I see is that you requested yourself for a review. I'm not super used to the Github interface

johnwmillr commented 4 years ago

Resolves #118