import deezer
client = deezer.Client()
client.get_album(680407).title
'Monkey Business'
results = client.search("Black eyed peas")
top_result = results[0]
top_result
<Track: I Gotta Feeling>
top_result.type
'track'
bep = top_result.artist
bep
<Artist: Black Eyed Peas>
bep.get_albums()
[<Album: MASTERS OF THE SUN VOL. 1>, <Album: Invasion Of Imma Be Rocking That Body - Megamix E.P.>, <Album: The Beginning>, <Album: The Beginning (Deluxe)>, <Album: The Beginning & The Best Of The E.N.D. (International Mega-Deluxe Version)>, <Album: The Time (Dirty Bit)>, <Album: THE E.N.D. (THE ENERGY NEVER DIES) (International Version)>, <Album: Invasion Of I Gotta Feeling - Megamix E.P.>, <Album: THE E.N.D. (THE ENERGY NEVER DIES) (Deluxe Version)>, <Album: Invasion Of Meet Me Halfway - Megamix E.P.>, <Album: Invasion Of Meet Me Halfway - Megamix E.P. (International Version)>, <Album: Renegotiations: The Remixes>, <Album: Monkey Business>, <Album: Let's Get It Started>, <Album: Elephunk>, <Album: Bridging The Gap>, <Album: Behind The Front>, <Album: eXplosion>, <Album: Be Nice>, <Album: GET IT>, <Album: STREET LIVIN'>, <Album: #WHERESTHELOVE>, <Album: Rock That Body (International Version)>, <Album: I Gotta Feeling>, <Album: I Gotta Feeling (International Version)>]
bep.get_radio()
[<Track: RITMO (Bad Boys For Life)>, <Track: Baianá>, <Track: React>, <Track: Dance Monkey>, <Track: Titanium (feat. Sia)>, <Track: Promises>, <Track: Pump It>, <Track: Instagram>, <Track: Trampoline>, <Track: I Gotta Feeling>, <Track: One Kiss>, <Track: Me Gusta>, <Track: Tusa>, <Track: Loco Contigo>, <Track: Say My Name>, <Track: Where Is The Love?>, <Track: Lose Control>, <Track: Never Seen The Rain>, <Track: Que Calor (feat. J Balvin & El Alfa)>, <Track: China>, <Track: Taki Taki>, <Track: The Other Side (from Trolls World Tour)>, <Track: Piece Of Your Heart>, <Track: Turn Me On>, <Track: CAN'T STOP THE FEELING! (Original Song from DreamWorks Animation's "TROLLS")>]
the_end = top_result.album
the_end
<Album: THE E.N.D. (THE ENERGY NEVER DIES) (Deluxe Version)>
the_end.get_tracks()
[<Track: Boom Boom Pow (Album Version)>, <Track: Rock That Body (Album Version)>, <Track: Meet Me Halfway (Album Version)>, <Track: Imma Be>, <Track: I Gotta Feeling>, <Track: Alive (Album Version)>, <Track: Missing You (Album Version)>, <Track: Ring-A-Ling (Album Version)>, <Track: Party All The Time (Album Version)>, <Track: Out Of My Head (Album Version)>, <Track: Electric City (Album Version)>, <Track: Showdown (Album Version)>, <Track: Now Generation (Album Version)>, <Track: One Tribe (Album Version)>, <Track: Rockin To The Beat (Album Version)>, <Track: Where Ya Wanna Go (New Album Version)>, <Track: Simple Little Melody (Album Version)>, <Track: Mare (Album Version)>, <Track: Don't Bring Me Down (Album Version)>, <Track: Pump It Harder (Album Version)>, <Track: Let's Get Re-Started (Album Version)>, <Track: Shut The Phunk Up (New Album Version)>, <Track: That's The Joint (Album Version)>, <Track: Another Weekend (Album Version)>, <Track: Don't Phunk Around (Album Version)>]