You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# curl https://genius.com/api/search/multi?q=Hello+Adele
...
<div class="line2">Sorry, we have to make sure you're a human before we can show you this page</div>
...
Version info
Package version 3.0.0
OS: Ubuntu 18.04.4 LTS
Additional context
Reproduced on VPS located in Germany. Locally everything works fine.
The text was updated successfully, but these errors were encountered:
Genius.search_song is a convenience method and calls the following methods:
genius.search_allgenius.songgenius.lyrics
But as you have experienced, VPS and proxy users are very likely to get a 403 error because of Genius's captcha service. Even If we switched to using api.genius.com/search, you would still get a 403 error in genius.lyrics.
I suggest either going behind a proxy that works for Genius or limiting your calls to developers' API methods. For example, if you wanted to search for a song and get its info, you could try this which only uses developers' API methods:
songs = genius.search_songs("Eminem Rap God")["songs"]
for song in songs:
if song['title'] == "Rap God":
song_id = song['id']
song = genius.song(song_id)
Lib should use
api.genius.com/search
if token provided.Expected behavior
Lyrics returned
To Reproduce
Version info
3.0.0
Additional context
Reproduced on VPS located in Germany. Locally everything works fine.
The text was updated successfully, but these errors were encountered: