I am currently working on an android app using flutter framework and this is my first ever mobile app. I am well familiar with python36 and have written some scripts for scrapping some websites (using BeautifulSoup) which retrieve data from the website and make a CSV file containing all the information required. I want to perform some operations on this data, particularly mathematical calculations and use (or display) the results in my app.
Now I want that data to be sent to my app after performing the operations so that I can display the result there. Like if my app makes a request to scrape a particular website, I should get the data on the screen which was generated by running the script in the background.
I am planning to use Firebase as a backend for my app. Now my doubt is where will these scripts be hosted or how shall I go about achieving this?