Class deezer.client.Client(appid=None, appsecret=None, accesstoken=None, headers=None,.kwargs) ¶ A client to retrieve some basic infos about Deezer resourses. Create a client instance with the provided options. Options should be passed in to the constructor as kwargs.
- 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.
- Remove universal wheel option (5f31f14)Fix missing requirements when running tests (cb7d421)Fix configuration for python-semantic-release (dd446d2).
Implements a client class to query theDeezer API
deezer.client.
Client
(app_id=None, app_secret=None, access_token=None, headers=None, **kwargs)¶A client to retrieve some basic infos about Deezer resourses.
Create a client instance with the provided options. Options shouldbe passed in to the constructor as kwargs.
This client provides several method to retrieve the content of mostsort of Deezer objects, based on their json structure.
Headers can be forced by using the headers
kwarg.For example, use Accept-Language
header to force the output language.
app_id – appliication ID.
app_secret – application secret.
access_token – user access token.
headers – a dictionary of headers to be used.
Deprecated since version 1.4.0.
The following parameters will be removed in the next major version:
host - override the default hostname.
use_ssl - connect using HTTP if set to False.
advanced_search
(terms, relation=None, index=0, limit=25, **kwargs)¶Advanced search of track, album or artist.
See Search section of Deezer API for search terms.
a list of Resource
objects.
get_album
(object_id, relation=None, **kwargs)¶Get the album with the provided id
an Album
object
get_artist
(object_id, relation=None, **kwargs)¶Get the artist with the provided id
an Artist
object
get_chart
(relation=None, index=0, limit=10, **kwargs)¶Get chart
a list of Resource
objects.
get_comment
(object_id)¶Get the comment with the provided id
a Comment
object
get_episode
(object_id)¶Get the episode with the provided id
a Episode
object
get_genre
(object_id)¶Get the genre with the provided id
a Genre
object
get_genres
()¶a list of Genre
objects.
get_object
(object_t, object_id=None, relation=None, parent=None, **kwargs)¶Actually query the Deezer API to retrieve the object
json dictionary
get_playlist
(object_id)¶Get the playlist with the provided id
a Playlist
object
get_podcast
(object_id)¶Get the podcast with the provided id
a Podcast
object
get_radio
(object_id=None)¶Get the radio with the provided id.
a Radio
object
get_radios
()¶Get a list of radios.
a list of Radio
objects
get_radios_top
()¶Get the top radios (5 radios).
a Radio
object
get_track
(object_id)¶Get the track with the provided id
a Track
object
get_user
(object_id)¶Get the user with the provided id
a User
object
object_url
(object_t, object_id=None, relation=None, **kwargs)¶Helper method to build the url to query to access the objectpassed as parameter
TypeError – if the object type is invalid
scheme
¶Get the http prefix for the address depending on the use_ssl attribute
search
(query, relation=None, index=0, limit=25, **kwargs)¶Search track, album, artist or user
a list of Resource
objects.
url
(request=')¶Build the url with the appended request if provided.
Latest versionReleased:
A package to search and download musics on Deezer
Project description
A package to search and download musics on Deezer.
Installation
Install from release
Install from repository
Usage as a CLI
Commands
Usage as a package
Logging In
You can get the your arl
by manually logging into Deezer using your browser and check the cookies
and look for the value of arl
.
Searching
Getting Information and Downloading
Custom ProgressHandler
This example uses the amazing tqdm package.
Code
Output
TODO
- <input type='checkbox' disabled=' /> More CLI features, save used Arls for convenience.
- <input type='checkbox' checked=' disabled=' /> Multithreaded downloader (1 song / 1 thread)
- <input type='checkbox' disabled=' /> Binary file
- <input type='checkbox' disabled=' /> GUI
Disclaimer
I will and should not be held responsible for the usage of this package.
Don't use this package illegaly and against Deezer's Terms Of Use.
This is licensed under GNU GPL v3.
Release historyRelease notifications | RSS feed
1.1.4.post1
1.1.4
1.1.3.post1
1.1.3
1.1.2
1.1.1.post3
Deezer Python Tutorial
1.1.1.post2
1.1.1.post1
1.1.1
1.1.0
1.0.9
Deezer Python
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0b1 pre-release
1.0.0b0 pre-release
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size py_deezer-1.1.4.post1-py3-none-any.whl (19.3 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size py-deezer-1.1.4.post1.tar.gz (15.8 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for py_deezer-1.1.4.post1-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 19ed6dee251cb51d8834279f6aa189f37895e3e0868b9ce5ec3c347263da11f2 |
MD5 | 17de318fbe51d1130c95706fd427409c |
BLAKE2-256 | dbac9911f5e0b175aeb2f8fe15058f984a32f446e1d02dc30574abf461bfad6e |
Deezer Python Download
CloseDeezer Python Download
Hashes for py-deezer-1.1.4.post1.tar.gz
Deezer Api Python
Algorithm | Hash digest |
---|---|
SHA256 | c5daaa6b46b337bcbca971434da71cc7f602f1c58ba7198d210c8c8ca13fa414 |
MD5 | 0cdc915e04e2e714dd188bac4ca796b4 |
BLAKE2-256 | 64d061368c8ab7dedae5c3ee7364bd3f26879a953d5d4f0a455a612422d393dd |