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

Get random songs from artist #246

Open Freccia opened 1 year ago

Freccia commented 1 year ago

Hello,

I was wondering if it's possible to get random songs from an artist ?

Something like that:

artist = genius.search_artist("Andy Shauf", max_songs=3, sort="random")
print(artist.songs)

Thank you