AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Spotify download stuck9/13/2023 Below is my code: import spotipy.util as utilįrom flask import Flask, render_template, requestĬonst SongNameElement = document.getElementById("SongName") I'm running a flask Python web server that returns JavaScript and HTML (see code below) however whenever it makes a request to the API, the promise is marked as pending however I'm not sure why it is not being completed. I have managed to implement it in Python so far so it's not an issue with authentication to the API. I also used this code to supply the request headers (token etc).Įxample JSON Data can be found here. I used this code I found online to get the self-updating div done through a publiclly accessible JSON file. It is supposed to make a GET request through the fetch method to the Spotify API every 1000 ms and update the SongNameElement on screen without the user having to refresh. ![]() I'm trying to scrape together a site that I can go to to view my currently playing song on Spotify. I'm new to Javascript so please bear with.
0 Comments
Read More
Leave a Reply. |