Almost everything is done using the Deezer client from deezer-python package (can be installed with pip).
Code is straightforward.
Attributes can be found at https://developers.deezer.com/api
Run on a remote server with ssh and nohup because the whole process takes quite a long time.