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

getting "Specified song does not have a valid URL with lyrics. Rejecting." error #140

Closed chethan25 closed 4 years ago

chethan25 commented 4 years ago

I am getting "Specified song does not have a valid URL with lyrics. Rejecting." error while searching a song but it works after a few more tries for the same song, I am not sure what's causing this issue. I'm making a reddit bot using this package and i'm not able to come up with a working logic to retry the search without messing up other part of my code. Screenshot from 2020-05-20 20-42-34

allerter commented 4 years ago

139 This is probably because of Genius's new theme. Try the solution I provided there, and see if the issue persists.

chethan25 commented 4 years ago

your solution works, haven't got that error since i replaced those lines with your code. thanks a lot.

johnwmillr commented 4 years ago

Thank you for all your help on these issues, @Allerter. You're more than welcome to put a PR together that addresses some of these bugs you've solved.

allerter commented 4 years ago

Thank you for all your help on these issues, @Allerter. You're more than welcome to put a PR together that addresses some of these bugs you've solved.

It's my pleasure. Actually it was just one bug, and since it's only about 10 lines of code I thought it wouldn't be necessary. But sure, I'll submit a pull request soon.