A Python Python Browser

Imagine a Python script which gets an HTML file, reads it, and does some calculations then writes it to a new HTML file. The HTML is sent to a web browser by a Python script. Then the web browser modifies the HTML and sends it back to the Python script. The Python script looks at this this HTML and a few other HTMLs and does some calculations and writes a new HTML file. The Python script can also write a new Python script and replace itself for the next run or just keep running unchanged. This process goes back and force between a Python script which produces a python script and html and the web browser which modifies the HTML in return. ...

April 17, 2025 · evgnomon