How to use two API in Developer in Appweb Flask

Asked

Viewed 20 times

0

I’m new in the world of programming and I’m wanting to delve into web application I would take a doubt.

I made a resquests of a json dictionary of two different api.

inserir a descrição da imagem aqui

I want to put this data scraping in a table on my index page so I’m not able to do this with two api.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

follow my github with the code: https://github.com/Dalmocabral/flask_infinite_flight/tree/master/app

1 answer

0

Before passing the data to render_template you need to concatenate the two answers ("Expert" and "TS1"). However this solution is not scalable because then when to add a third, it will be necessary to do one more concatenation and so on.

I think the best option would be to scrap the data for an application’s own database and what was passed to render_template was the result of a query.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.