I use Python to collect some information, create a very simple html page, save it locally and display the page in my browser using webbrowser.open ('file: /// c: /testfile.html'). I check for new information every minute. If the information changes, I overwrite the local html file and want to reload the displayed page.
The problem is that webbrowser.open opens a new tab in my browser every time I launch it. How to refresh a page, and not reopen it? I tried new = 0, new = 1 and new = 2, but they all do the same. Using a controller () does not work better.
I suppose I could add something like <META HTTP-EQUIV = "refresh" CONTENT = "60"> to the <head> on the html page to update every time if the content has changed, but would rather find The best way.
The exact time interval is not important.
Python 2.7.2, chrome 26.0.1410.64 m, Windows 7 64.
foosion
source share