Deezer Python



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.

  1. 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.
  2. 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

classdeezer.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.

Parameters
  • 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.

Returns

a list of Resource objects.

get_album(object_id, relation=None, **kwargs)

Get the album with the provided id

Returns

an Album object

get_artist(object_id, relation=None, **kwargs)

Get the artist with the provided id

Returns

an Artist object

get_chart(relation=None, index=0, limit=10, **kwargs)

Get chart

Returns

a list of Resource objects.

get_comment(object_id)

Get the comment with the provided id

Returns

a Comment object

get_episode(object_id)
Python

Get the episode with the provided id

Returns

a Episode object

get_genre(object_id)

Get the genre with the provided id

Returns

a Genre object

get_genres()
Returns

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

Returns

json dictionary

get_playlist(object_id)

Get the playlist with the provided id

Returns

a Playlist object

get_podcast(object_id)

Get the podcast with the provided id

Returns

a Podcast object

get_radio(object_id=None)

Get the radio with the provided id.

Returns

a Radio object

get_radios()

Get a list of radios.

Deezer
Returns

a list of Radio objects

get_radios_top()

Get the top radios (5 radios).

Returns

a Radio object

get_track(object_id)

Get the track with the provided id

Returns

a Track object

get_user(object_id)

Get the user with the provided id

Returns

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

Raises

TypeError – if the object type is invalid

propertyscheme

Get the http prefix for the address depending on the use_ssl attribute

Example
search(query, relation=None, index=0, limit=25, **kwargs)

Search track, album, artist or user

Returns

a list of Resource objects.

url(request=')

Build the url with the appended request if provided.

Latest version

Released:

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

Deezer python download

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.

Files for py-deezer, version 1.1.4.post1
Filename, sizeFile typePython versionUpload dateHashes
Filename, size py_deezer-1.1.4.post1-py3-none-any.whl (19.3 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size py-deezer-1.1.4.post1.tar.gz (15.8 kB) File type Source Python version None Upload dateHashes
Close

Hashes for py_deezer-1.1.4.post1-py3-none-any.whl

Hashes for py_deezer-1.1.4.post1-py3-none-any.whl
AlgorithmHash digest
SHA25619ed6dee251cb51d8834279f6aa189f37895e3e0868b9ce5ec3c347263da11f2
MD517de318fbe51d1130c95706fd427409c
BLAKE2-256dbac9911f5e0b175aeb2f8fe15058f984a32f446e1d02dc30574abf461bfad6e

Deezer Python Download

Close

Deezer Python Download

Hashes for py-deezer-1.1.4.post1.tar.gz

Deezer Api Python

Hashes for py-deezer-1.1.4.post1.tar.gz
AlgorithmHash digest
SHA256c5daaa6b46b337bcbca971434da71cc7f602f1c58ba7198d210c8c8ca13fa414
MD50cdc915e04e2e714dd188bac4ca796b4
BLAKE2-25664d061368c8ab7dedae5c3ee7364bd3f26879a953d5d4f0a455a612422d393dd