![]() ![]() get_track ( track_id ) # track is now a dict with a key of info, download, tags, and get_tag # info and tags are dict track_info = track tags_separated_by_comma = track # download and get_tag are partial functions track ( download_dir, quality = track_formats. search_playlists ( "top", index = 2 ) Getting Information and Downloading # Some login code here # Some download stuffs from pydeezer import Downloader from nstants import track_formats download_dir = "C: \\ Users \\ User \\ Music" track_id = "547653622" track = deezer. Cole", limit = 5 ) # Search playlists playlist_search_results = deezer. search_albums ( "DAMN", limit = 10 ) # Search artists artist_search_results = deezer. search_tracks ( "IM DOPE" ) # Search albums album_search_results = deezer. Searching # Some login code here # Search tracks track_search_results = deezer. ![]() 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. user # or # deezer = Deezer() # user_info = deezer.login_via_arl(arl) Usage as a package Logging In from pydeezer import Deezer arl = "edit_this" deezer = Deezer ( arl = arl ) user_info = deezer. q, -quality ĭefault quality of the track will be used. d, -download-dir DIRECTORY Sets the directory on where the tracks are Sets the media type and how it searches the a, -arl TEXT Used to be able to login to Deezer. Installation Install from release pip install py-deezer A package to search and download musics on Deezer. ![]()
0 Comments
Leave a Reply. |