I want to run a python program whenever I need and get some
information out of it. The problem is, I want to call that through internet.
And I want to show the content on a web page or some UI container. That's it. Let
put this as a requirement.
Problem: Display some information on
my web page calculated by a python program
I want to run a python program whenever I need and get some
information out of it. The problem is, I want to call that through internet.
And I want to show the content on a web page or some UI container. That's it. Let
put this as a requirement.
How do we do it on our
local computer? We run our program as : python my_program.py.
So maybe I can do
something like: www.mywebsite.com/my_program.py . Can we? No
idea.
I expect to collect the response in some variable (no idea how I can create a variable in the first place on html) and then display the contents of this variable. Displaying a simple text on html is known, so that should be easy.