Open shashwatnegi69 opened 4 years ago
Try using spotipy a python wrapper over spotify api. Create your own access token by going to the spotify developer website and use it. The data is coming empty because the api's are getting any data. (401 error code I guess )
Ok, so i
Try using spotipy a python wrapper over spotify api. Create your own access token by going to the spotify developer website and use it. The data is coming empty because the api's are getting any data. (401 error code I guess )
Ok, so I created my own access token and replaced it, but the csv files which are being generated are still empty. It is not showing any error just blank files
CLIENT_ID =
cache_token = token.get_access_token() spotify = spotipy.Spotify(cache_token)
results = spotify.artists(artist_ids)
check what results give read the documentation of the various api to see what to send https://github.com/chaksoham/Music-Analysis/blob/master/pds-final-project.ipynb see here how I have used it, in my repo.
There seeems to be a problem in using the spotify api. Also the access token has expired. I'm new to this so would you mind explaining me what should i do in order to get the dataset. Also right now the individual year csv files generated in the first code are empty with nothing but the column heading.
I hope you would help me with my query.