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

Lyrics have unwanted data returned with them #264

Open KevinDellatore opened 8 months ago

KevinDellatore commented 8 months ago

Describe the bug Lyrics are often returned with data that are definitely not intended to be, or at least expected to be returned. This unwanted data usually includes:

Expected behavior The lyrics and only the lyrics would be returned without any extra useless data

To Reproduce

  1. use the library to grab the lyrics from Genius
  2. Return or print the lyrics

There is no error message because there is no error, just a fault in how the library is grabbing the lyrics.

Version info

Additional context I saw this problem was reported in issue 254 but since its several months old at this point, I didn't want to necro it. I'll try using the "solution" provided in that thread, but since this issue is seemingly unintended I wanted to make it known that its still happening.

(Also, I'm fairly inexperienced at using GitHub as a whole, so if this has been solved in separate forks I apologize)

joshp23 commented 7 months ago

This https://github.com/johnwmillr/LyricsGenius/pull/215#issuecomment-1399092335 will fix the garbage data issues