Deezer Python



  1. Import Deezer-python
  2. Deezer Python Download
  3. Deezer Api Python

Remove universal wheel option (5f31f14)Fix missing requirements when running tests (cb7d421)Fix configuration for python-semantic-release (dd446d2). Create a client instance with the provided options. Be passed in to the constructor as kwargs. import deezer. client = deezer.Client (appid='foo', appsecret='bar') This client provides several method to retrieve the content of most. Sort of Deezer objects, based on their json structure. 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. You have to login to accept the terms and conditions of the simple API. As Deezer sometimes requires a captcha to login the auto login features was removed. Instead you have to manually insert a valid Deezer cookie to the settings.ini. The relevant cookie is the arl cookie.

v2.2.2 (2021-04-06)¶

Fix¶

  • Release in a separate environment (4d987d0)

  • deps: Update dependency sphinx-autobuild to v2021 (f70a1bd)

  • deps: Update dependency myst-parser to ^0.13 (73255fb)

v2.2.1 (2020-10-23)¶

Fix¶

  • Set minimum python version to 3.6 (4ff223d)

  • Poetry extras (cc36e0f)

v2.2.0 (2020-10-13)¶

Fix¶

  • Build command for PSR (c76b8ea)

v2.1.0 (2020-10-10)¶

Documentation¶

  • Add naveen521kk as a contributor (#171) (0df16d3)

v2.0.0 (2020-10-01)¶

Fix¶

  • Include docs/*.md files in package (5fcc38d)

Deezer python free

v1.6.2 (2020-09-21)¶

Fix¶

  • Remove universal wheel option (5f31f14)

  • Fix missing requirements when running tests (cb7d421)

  • Fix configuration for python-semantic-release (dd446d2)

v1.6.1 (2020-08-27)¶

🐛 Bug Fixes:¶

  • Fix Playlist.iter_fans, improve tests to catch similar errors #139 (hithomasmorelli)

v1.6.0 (2020-08-20)¶

🚀 Enhancements:¶

  • Fix crash for unknown resource, add Podcast & Episode resources #134 (hithomasmorelli)

  • 📦 Move package metadata to setup.cfg #91 (browniebroke)

📖 Documentation updates:¶

  • Add hithomasmorelli as a contributor #138 (allcontributors[bot])

✅ Testing:¶

Deezer-python
  • Use codecov-action to upload coverage report #97 (browniebroke)

  • Pin dependencies in requirements files #94 (browniebroke)

  • ☂️ Increase test coverage to 100% #92 (browniebroke)

v1.5.0 (2020-07-01)¶

🚀 Enhancements:¶

  • Add get_tracks and get_fans methods to Playlist resources #90 (browniebroke)

📖 Documentation updates:¶

  • Migrate most of the docs to Markdown with MyST #85 (browniebroke)

  • Improve documentation for resources #84 (browniebroke)

✅ Testing:¶

  • Refactor tests to use the pytest style #89 (browniebroke)

  • Split resources tests into multiple classes #88 (browniebroke)

  • 🛠 Move CI to Github actions #86 (browniebroke)

v1.4.0 (2020-05-02)¶

🚀 Enhancements:¶

  • Use explicit kwargs for the Client class #79 (browniebroke)

📖 Documentation updates:¶

  • Documentation reworking and explain usage #78 (browniebroke)

  • Auto generate changelog #75 (browniebroke)

✅ Testing:¶

  • Clean-up config for coverage #80 (browniebroke)

  • Use Python 3.8 on Travis (drop the -dev) #77 (browniebroke)

  • Update names in Github action & run on Python 3.8 #76 (browniebroke)

v1.3.0 (2019-11-09)¶

🚀 Enhancements:¶

  • Add Python 3.8 support #71 (jnth)

🐛 Bug Fixes:¶

  • Get method error handling #64 (nrebena)

✅ Testing:¶

  • Add isort #72 (browniebroke)

  • Remove appveyor.yml #70 (browniebroke)

  • Move deploy step to a separate stage on Travis #61 (browniebroke)

v1.2.0 (2019-09-25)¶

🚀 Enhancements:¶

  • Add a header kwarg in Client to force session headers #60 (jnth)

  • Add user’s favorite albums, artists, tracks and playlists in user resource. #53 (jnth)

📖 Documentation updates:¶

  • Update Travis CI badge: travis.org -> travis.com #57 (browniebroke)

  • Create .config for all-contributors bot #51 (browniebroke)

Python

✅ Testing:¶

  • Create pythonpackage.yml to enable GitHub actions #58 (browniebroke)

v1.1.0 (2019-05-25)¶

💥 Breaking Changes:¶

  • Drop support for EOL Python 3.4 #47 (hugovk)

📖 Documentation updates:¶

  • Update template to match filename #48 (hugovk)

✅ Testing:¶

  • Python 3.7+ support #44 (browniebroke)

  • Test with vcrpy#43 (jnth)

v1.0.0 (2019-02-11)¶

💥 Breaking Changes:¶

  • Drop Python 2 support #41 (hugovk)

v0.9.0 (2019-02-10)¶

🚀 Enhancements:¶

  • Add advanced search method #37 (jnth)

v0.8.0 (2018-10-30)¶

🚀 Enhancements:¶

  • Auto-format code using black #35 (browniebroke)

  • Make tornado an optional requirements #34 (browniebroke)

  • Pagination feature #32 (MDCEY)

v0.7.0 (2018-10-03)¶

💥 Breaking Changes:¶

  • Change name files names and docs from async #28 (horstmannmat)

🚀 Enhancements:¶

  • Store the session in the client #24 (sheregeda)

✅ Testing:¶

  • Add a CI step for check-manifest #30 (browniebroke)

  • Update build matrices #29 (browniebroke)

  • Appveyor tests #25 (browniebroke)

v0.6.1 (2017-06-19)¶

🚀 Enhancements:¶

  • Add access token to request kwargs #20 (sheregeda)

📖 Documentation updates:¶

  • Update README.rst #18 (khamaileon)

v0.6.0 (2016-12-27)¶

🚀 Enhancements:¶

  • Refactoring: replace urlopen by requests #16 (browniebroke)

v0.5.0 (2016-12-26)¶

📖 Documentation updates:¶

  • Docs enhancements #13 (browniebroke)

✅ Testing:¶

Deezer Python
  • Run Flake8 on Travis #14 (browniebroke)

  • Use tox-travis to integrate environments better #12 (browniebroke)

v0.4.0 (2016-12-08)¶

🚀 Enhancements:¶

  • Improve chart integration #11 (pfouque)

  • Add pypy to the build matrix #10 (browniebroke)

  • Implement chart methods #8 (pfouque)

✅ Testing:¶

  • Switch from coveralls to codecov #9 (browniebroke)

  • Correct a couple of flake8 warning #7 (browniebroke)

  • Add basic flake8 config to setup.cfg #6 (browniebroke)

v0.3.0 (2016-11-09)¶

🚀 Enhancements:¶

  • add resource parameters and iterators #5 (pfouque)

  • Async client for Tornado, search #1 (misuzu)

v0.2.1 (2015-09-14)¶

🚀 Enhancements:¶

  • Run tests against Python 3.5 #3 (browniebroke)

v0.2 (2015-01-31)¶

🚀 Enhancements:¶

  • Methods for resources #2 (misuzu)

v0.1 (2014-11-23)¶

* This Changelog was automatically generated by github_changelog_generator

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?

Import Deezer-python

Deezer API

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?

Deezer Python Download

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.

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

Deezer Api Python


Until next time,
Alex