Deezer grad Date

33 views Asked by At

how can I set the modification date of a playlist as a variable?

Playlist : https://www.deezer.com/de/playlist/1313617925

at the top of the playlist is: Updated: 11 hours ago

enter image description here

My Script:

import requests
from datetime import datetime

access_token = 'xxxxxx'
playlist_id = '1313617925'
url = f'https://api.deezer.com/playlist/{playlist_id}'
headers = {'Authorization': f'Bearer {access_token}'}

response = requests.get(url, headers=headers).json()
total_duration = response['duration']
print(total_duration)
0

There are 0 answers