johnwmillr / LyricsGenius

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

Inconsistent use of '\n\n' in lyrics. #163

Closed chethan25 closed 3 years ago

chethan25 commented 3 years ago

In lyrics '\n\n' is used to separate sections of a song but it's very inconsistent (only one '\n' is present). I've to manually add one more '\n' character to the json file. Is there any way to resolve this issue?

for eg - \n\n[Verse 4: Buddah Bless]\nAiyo, it's time to get drastic, but God bless the fantastic\nHerb passed it, now I melt the mic like it's plastic\nI rag crews 'cause I'm bad news\nIn a mad mood, I'm servin' brothers quicker than fast food\nStep to this and get your body blown\n'Cause I'm no maric\u00f3n, for poems I slide the hotties home\nHere's some advice, I'm mad nice\nAiyo, I'm quick to lick the mag twice and cold take a fg's life\nMy swellin' melon got nigas jealin'\nAiyo, fuk bribes, I'm takin' nigas lives like a felon\n[Verse 5: Big Twan]\nYo, I'm bustin' chumps like a Glock 10

There should be two '\n' characters before verse 5 but there's only one.

allerter commented 3 years ago

Hey, thanks for bringing up this issue. Before we proceed, I need some information to recreate your issue here:

I just tried this:

genius = Genius(token)
lyrics = genius.lyrics('https://genius.com/Big-l-8-iz-enuff-lyrics')

and all the \n\ns were present for me.

chethan25 commented 3 years ago

The \n\n s are consistent in the latest version. I was on 1.8.6 when I saved the json files.

I also would like to appreciate this package, it has greatly helped my project. I made a reddit bot that replies with song lyrics and metadata.

johnwmillr commented 3 years ago

Cool bot, @chethan25!