{ "cells": [ { "metadata": { "trusted": true }, "cell_type": "code", "source": "import deezer", "execution_count": 1, "outputs": [] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "client = deezer.Client()", "execution_count": 2, "outputs": [] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "client.get_album(680407).title", "execution_count": 3, "outputs": [ { "output_type": "execute_result", "execution_count": 3, "data": { "text/plain": "'Monkey Business'" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": [ "results = client.search(\"Black eyed peas\")" ], "execution_count": 4, "outputs": [] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "top_result = results[0]\ntop_result", "execution_count": 5, "outputs": [ { "output_type": "execute_result", "execution_count": 5, "data": { "text/plain": "" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "top_result.type", "execution_count": 6, "outputs": [ { "output_type": "execute_result", "execution_count": 6, "data": { "text/plain": "'track'" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "bep = top_result.artist\nbep", "execution_count": 7, "outputs": [ { "output_type": "execute_result", "execution_count": 7, "data": { "text/plain": "" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "bep.get_albums()", "execution_count": 8, "outputs": [ { "output_type": "execute_result", "execution_count": 8, "data": { "text/plain": "[,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ]" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "bep.get_radio()", "execution_count": 9, "outputs": [ { "output_type": "execute_result", "execution_count": 9, "data": { "text/plain": "[,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ]" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "the_end = top_result.album\nthe_end", "execution_count": 10, "outputs": [ { "output_type": "execute_result", "execution_count": 10, "data": { "text/plain": "" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "the_end.get_tracks()", "execution_count": 11, "outputs": [ { "output_type": "execute_result", "execution_count": 11, "data": { "text/plain": "[,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ]" }, "metadata": {} } ] }, { "metadata": { "trusted": true }, "cell_type": "code", "source": "", "execution_count": null, "outputs": [] } ], "metadata": { "kernelspec": { "name": "python3", "display_name": "Python 3", "language": "python" }, "language_info": { "name": "python", "version": "3.7.6", "mimetype": "text/x-python", "codemirror_mode": { "name": "ipython", "version": 3 }, "pygments_lexer": "ipython3", "nbconvert_exporter": "python", "file_extension": ".py" } }, "nbformat": 4, "nbformat_minor": 4 }