I have a python program which prints a bunch of strings.
My program scrapes house websites through an api, and prints out the house type, bedrooms, location, and a url to an image to the IDE console.
I use PyCharm IDE to print out the results to the console. However, i would like to run this python file online to print these results to a html page rather than the IDE console. My problem is, when i put the file on my web host, and run it, it just shows me the lines of code that are in the python file, instead of actually running it and printing anything out. I have researched 'CGI-BIN', which prints the code as it would on the IDE, however, my web host '000webhost', doesn't include it this capability. I have also researched about web frameworks, such as flask and django.
Is there a way to print to html without web frameworks? if not, then please tell me how to do this through web frameworks.
If the description above is too broad, please comment so that i can add more details rather than voting down my question please.