forked from BiancaGemarR/da-project-promo-56-modulo-2-team-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (15 loc) · 717 Bytes
/
Copy pathmain.py
File metadata and controls
22 lines (15 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#%%
from src import support_call_api as ap
from src import data_manipulation_to_csv as dm
genre_list = ['rock', 'jazz', 'pop', 'classical']
for genre in genre_list:
track_list, artist_list = ap.get_tracks_and_artists(genre, start_year=2024, end_year=2025)
dm.load_track(track_list, genre)
album_list = ap.get_album(genre, start_year=2024, end_year=2025)
dm.load_album(album_list, genre)
unique_artist_list = list(set(artist_list)) # derivable: unique artists
statistics_list = ap.get_statistics_list(unique_artist_list)
dm.load_statistics(statistics_list, genre)
resultados_album = ap.get_biographies_list(unique_artist_list)
dm.load_biography(resultados_album, genre)
# %%