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
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)