Is there a good way to access browser like IE and run an HTML file from within Python code?

Would running Python server-side work? Apache supports Python as a web development language. You can generate HTML on the server, and then browse that in IE.

This works with Windows only ...

# acts like double-clicking the filename in Windows file manager
# starts the associated program and loads the file

import os

# default file path is the current directory
os.startfile("test2.htm")

I know you can use this to open IE6 but i do not know if it will open html files

import webbrowser
url = http://www.google.com # I presume you can open html files
webbrowser.open(url)

Hey guys,

would anybody have any information about accessing a browser in a mobile phone?

im trying to implement some simple stuff with python on my phone and cant master anything with using the browser.

any help appreciated

pys60 for Symbian mobile is good option.
it provides various modules implemented specifically for Mobiles.
Even Browser module is exposed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.