Deezer Python



  1. Python Deezer Player
  2. Deezer Python
  3. Deezer-python Example
  4. Github Deezer Python
  5. Import Deezer-python

Pick and play any track ad-free, plus download your favourites and listen offline. Stream across all your devices. Then Β£9.99/month. No commitment, cancel anytime. All the benefits of Deezer Premium at a discounted annual price. 1-year commitment.

  1. XBMC plugin are written in Python and as you already know there is no SDK for this language. The only way I found to do this is to open a web page which integrates a Deezer player in it. My web page and my Python plugin communicate by an Ajax communication. I just wanted to know if it's possible to receive an audio stream by the Deezer api.
  2. Remove universal wheel option (5f31f14)Fix missing requirements when running tests (cb7d421)Fix configuration for python-semantic-release (dd446d2).

I'm terrible with names, period. I just can't remember the nickname of a person I've just met, the title of a song I've heard or any name in general. This becomes really frustrating when you want to listen to music. Most often I recall who was playing the song, so I found myself in the need of browsing really fast through the discography of a specific artist with the possibility to listen to a short preview of every song (it would be too easy to track the song only by its name). And because I'm spending quite a lot of time in the terminal, wouldn't it be cool to do it from the command line?

Deezer API

This project is a Python script which allow you to record the output of music streaming service, cutting the audio stream for each song. It's initially done for Deezer, extracting song title and artist from the title of the browser window, but it can probably. Module to implement the various types of resources that can be found in the API. Class deezer.resources.Album(client, json) ΒΆ To work with an album object. All the fields documented on Deezer are accessible by as class attributes.

There are quite a few music streaming services out there, but I'm using Deezer for a long time now and I can say it's amazing. More than this, they published a public API that can be used by anyone who wants to grab data about songs, artists, albums, etc. You need only to login (you can do it with your Google account) on developers.deezer.com and start exploring. The API is really easy to consume, and there are many examples on the website so it is fairly easy to get going.

Oracle Functions

Based on Fn Project, Oracle Functions is a serverless service that you can use to deploy your code without worrying about the infrastructure and dependencies underneath. A very simple explanation would sound like this: once you wrote your code, Oracle Functions will build a container around it and handle the deployment.

Go ahead and create your first application. You can think at this as a collection of functions, working together (or not) to the server the same purpose. Whenever you will want to work with a specific function, you will call it by referencing the application which stores it.

The first place to look is the Getting Started tab. You will find there the steps required to deploy the hello-world app, no matter what programming language you prefer. I'm not going to cover these steps because they are very well explained and you can always check the Oracle Functions Quickstart, which takes you from zero to almost hero.

My python app is not very different from than hello-world. It's as simple as it can be. It's just calling the Deezer API using requests by passing the name of the artist. We grab from the response only the title and the link for the preview. We put everything in a JSON format which you get back in your browser.

Grab the python code from Github, put it in your func.py file and you're ready to go. If everything is configured properly, you can deploy your code using the following command.

Go back to the console and check if everything looks good. You will have your function published, and once you start invoking it you can monitor the number of requests directly from the browser.

The result?

There are multiple ways of invoking Oracle Functions, I'm currently using the fn directly but I plan to use API Gateway once it will become generally available. We need to pass the artist name and if everything looks good, you will get a JSON formatted response. I'm using jq to parse it and make it more appealing.

Deezer

Once you found your song by title, you can use ffplay to listen the preview .. just to be sure!


Until next time,
Alex

Latest version

Released:

A friendly wrapper library for the Deezer API

Project description

A friendly Python wrapper around the Deezer API.

Installation

The package is published onPyPI and can be installed by running:

Basic Use

Easily query the Deezer API from you Python code. The data returned by the DeezerAPI is mapped to python resources:

Ready for more? Look at our whole documentationon Read The Docs or have a play in pre-populated Jupyter notebookon Binder.

Contributors


Bruno Alla
πŸ’»πŸ“–πŸ€”πŸš§πŸ“¦βš οΈ

misuzu
πŸ’»πŸ“–πŸ€”βš οΈ

Pascal
πŸ’»βš οΈ

khamaileon
πŸ“–

Nikolay Sheregeda
πŸ’»βš οΈ

Matheus Horstmann
πŸ’»πŸ“–

Kieran Wynne
πŸ’»

Jonathan Virga
πŸ’»πŸ“–

Hugo
πŸ’»

allcontributors[bot]
πŸš‡

nrebena
πŸ›πŸ’»βš οΈ

Pavel
πŸ›

Samuel Gaist
πŸ’»βš οΈπŸ›‘οΈ

Thomas Morelli
πŸ›πŸ’»πŸ€”

Naveen M K
πŸ’»πŸš‡

This project follows the all-contributors specification.Contributions of any kind are welcome!

Release historyRelease notifications | RSS feed

2.2.2

2.2.1

2.2.0

2.1.0

2.0.0

1.6.2

1.6.1

1.6.0

1.5.0

1.4.0

Python Deezer Player

1.3.0

1.2.0

1.1.2

1.1.1

Play

1.1.0

1.0.0

0.9.0

0.8.0

0.7.0

0.6.1

Deezer

0.6.0

0.5.0

0.4.0

Deezer Python

0.3.0

0.2.3

0.2.2

0.2.0

0.1

Download files

Example

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for deezer-python, version 2.2.2
Filename, sizeFile typePython versionUpload dateHashes
Filename, size deezer_python-2.2.2-py3-none-any.whl (11.7 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size deezer-python-2.2.2.tar.gz (13.8 kB) File type Source Python version None Upload dateHashes
Close

Deezer-python Example

Hashes for deezer_python-2.2.2-py3-none-any.whl

Hashes for deezer_python-2.2.2-py3-none-any.whl
AlgorithmHash digest
SHA2560740c24d42c3dafd32d72e7f013221c80ae8d5517877d0e44d1c9701de4ae49b
MD58bf9566020064c7047ea28645aaf3438
BLAKE2-256fa869aa9bc5f29b413ef40ae1a245437e4972d54287ade7b6af994686f562485
Close

Github Deezer Python

Hashes for deezer-python-2.2.2.tar.gz

Import Deezer-python

Hashes for deezer-python-2.2.2.tar.gz
AlgorithmHash digest
SHA25695c93aa6065efa0a4b3f56677f2a53e0c7de3d946b04279e1d58f5b927037748
MD5e8483fb8c03c6ceb202c2b79880e8807
BLAKE2-256a10262a6ee05811d6e11359db58b9d9a42baf6b8a2af665cc67ad5db7bfc2801