open an html string in a browser?
Lance
lbrannma at cablespeed.com
Sat Jan 18 13:54:27 EST 2003
Hi All,
I have a zip file containing perhaps 800 html files. I want to use Python to
open one of these files in a browser.
Suppose the filename is myfile.html.
I've tried webbrowser and zipfile. These don't work.
The reason is that zipfile.read('myfile.html') returns a string, containing
the contents of the file. However, Webbrowser requires a URL (in this case
the name of an html file).
I don't want to save the string from zipfile.read to disk.
Any suggestions will be appreciated.
Thanks,
Lance
More information about the Python-list
mailing list