From c0cd4a8d6e09a67bfd21d4d5dbdc11570d790edb Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 15 Jun 2022 12:58:50 +0000 Subject: [PATCH] Create discography.py --- root/scripts/discography.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/scripts/discography.py diff --git a/root/scripts/discography.py b/root/scripts/discography.py new file mode 100644 index 0000000..18acc7c --- /dev/null +++ b/root/scripts/discography.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +from deezer import Deezer +import sys + +if __name__ == '__main__': + if len(sys.argv) > 1: + dz = Deezer() + releases = dz.gw.get_artist_discography_tabs(sys.argv[1], 100) + for type in releases: + for release in releases[type]: + print(release['id'])