What module can I use in flask to get data from an API and plays in my web application in the HTML part
What module can I use in flask to get data from an API and plays in my web application in the HTML part
It has a lib called requests (pip install requests), which is used to make requests. In the example below I do a get and retreat json from the request response.
from requests import get
url = "https://jsonplaceholder.typicode.com/users"
response = get(url)
user = response.json()