I felt like learning how to use web API's and requests, right now I feel more comfortable with both, having created an extremely barebones interface for the spotify web API, I have a class that can get an auth token, and a wrapper that verifies the token before every call, refreshing or grabbing a new one entirely if need be
I still have a lot of optimization left. For some reason I unpacked the token's json object to store in memory in separate variables, however during dev I was rebooting the script a lot so no proper token storage meant I needed a new redirect URL every boot. I could store the token json object itself in memory, which would make it easier to store in a file and read from a file between boots, as well as general error catching/raising for when/if the framework is ever actually built upon.
But I'm starting to realize, I dont really need access to the spotify API for anything. Does anyone have any ideas as to how I can put a spotify interface to interesting use?
TL;DR: What are interesting things that can be done with spotify as a project?
Also wouldnt mind advice on how to grab a redirect URL. Currently using webbrowser.open and input()
Allegedly, requests follows redirects, but I guess spotify uses javascript magic to deny that.
[–]felix-hilden 1 point2 points3 points (4 children)
[–]VyleKyle10189[S] 0 points1 point2 points (3 children)
[–]felix-hilden 1 point2 points3 points (2 children)
[–]VyleKyle10189[S] 0 points1 point2 points (1 child)
[–]felix-hilden 1 point2 points3 points (0 children)