diff --git a/app/datascience/api/etl.py b/app/datascience/api/etl.py index eb8727e..ed56d7b 100644 --- a/app/datascience/api/etl.py +++ b/app/datascience/api/etl.py @@ -3,7 +3,8 @@ from app.spotify_api import get_auth_header - +# TODO: +# This method is very large def get_albums(data): result = [] for item in data: diff --git a/app/spotify_api.py b/app/spotify_api.py index 92b3134..9a042e6 100644 --- a/app/spotify_api.py +++ b/app/spotify_api.py @@ -7,6 +7,8 @@ def create_token(): BASE_TOKEN_URL = 'https://accounts.spotify.com/api/token' + # TODO: + # Put token it's bad practice CLIENT_ID = 'aba92b636b61480c992f35aa022405f7' CLIENT_SECRET = '1d4db40d8e304d43bce78d5bea3d9751' client_str = f'{CLIENT_ID}:{CLIENT_SECRET}'