Hello, I have a website on pythonanywhere with Flask framework. My object with it is to keep me informed about cryptocurrencies, so when I refresh the page IT brings me some info. But only when I refresh the page!
This is a problem when I am not looking. Thus I wrote a a script(another py file) to run forever with 1 min. intervals. This file gets the data that I mentioned above and stores it into DB or a text file which then I plan to see(with a graph)on my flask app, on a different report page. So my question is: Is it possible to run this always runing py file in my Flask app on pythonanywhere? And not affecting the web service at the same time or should I run it on bash console and then read and display the data with my report page.
I experienced that if console is idle for a long time, It is closed. This means that my file will stop running. But then again I don't know how to run a py file alongside with a running Flask app
Which way should I try and how ?
Thank you in advance